Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp320958rdd; Tue, 9 Jan 2024 05:24:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnM1TMZWQyEL5RfZi51x88Cb8+V1mmDL87jSVDBJ8xzIyhSaaZtve1L8O0U8Q5abIfYbPn X-Received: by 2002:a50:ab4d:0:b0:557:1a63:812d with SMTP id t13-20020a50ab4d000000b005571a63812dmr2036529edc.6.1704806671357; Tue, 09 Jan 2024 05:24:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704806671; cv=none; d=google.com; s=arc-20160816; b=LtBY0qKqCLQ34U4Lo40zfLk59LEO7EsLIjN9Bq7SDa4tzhT6NDlk7N9JT4BfZrdtSr tVbBiuAp+rGjkoUMj61G4vLPoBng87Aru45zT+QeXG0baKB6tQFPd1Erva1KvINE7Iv+ cJ5Xs5FWxfbYVWCuZJLdSGd7Un+msLsLAVJsIqHxmYYPGuhaHj05a/IGXbdOkOPcwjz7 5P3dDlw3x/aSQW7KRhPu68is0GdO440SJKxDPewJ8VeBRON61FVwcT8EnscruMd6lSgP 5Vq3XdXQs+uIoAHNZekXnsAK2gsnnvfYRpfpGajLsq2PFO5YsS1OXJgo6uki8ROvSuPI AqlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X2gqG/7r5z5K6L++bROBYWulgu0qMkRC2/2Cvl49g7o=; fh=SzcB0AuSFOA8S7zRVKf/arms0fY0V0oAzzg6YPyNjU4=; b=esXB7hBXMs/jmRmPLAUI1cAdVIx7G9oOH25SMolO/qmhrSNKPmxtfQUHqctWhGaCkb b4MYYliTIZWXsDT/pIOBcfM7oOcBS+qQt5ORZOh6HxlEVSDBcttMvcl0BpBIzxjC0It6 qLOrfqfCqBtJc3Ylg/ixzHfRz4/ZrQcU+p7V01FQhnm2p1PqqcXiMgECJkg9jZEEdctN aKqvAbqNtbXeRJS1aAUsLOFlWGEbsCUZL+ZItVFRrLNfgSJfH8W2t1xBQfnWTCGB5dJV xEQUpdep2qvgVVvRhTITb43C7MUZ4q3tRPwksCEb/7nr45zRHRVjWGmOO50iSO74oapY mRrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=XbOUl1YL; spf=pass (google.com: domain of linux-kernel+bounces-20890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w27-20020a50d79b000000b0055754739cd0si758607edi.642.2024.01.09.05.24.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:24:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=XbOUl1YL; spf=pass (google.com: domain of linux-kernel+bounces-20890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1C6891F2511E for ; Tue, 9 Jan 2024 13:24:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47CEC38F99; Tue, 9 Jan 2024 13:24:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=avm.de header.i=@avm.de header.b="XbOUl1YL" Received: from mail.avm.de (mail.avm.de [212.42.244.119]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DD0438F89; Tue, 9 Jan 2024 13:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de Received: from mail-auth.avm.de (unknown [IPv6:2001:bf0:244:244::71]) by mail.avm.de (Postfix) with ESMTPS; Tue, 9 Jan 2024 14:24:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=avm.de; s=mail; t=1704806650; bh=tMStWelCVVDu4o3rBq23Y0TJCZcZ13Gsa2QHe6beLOY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XbOUl1YLQzT+Q5pGYYeIrGuUkIFunMxyTZ3ap8V5rYuiUE1MXPgt+aWXXNCOOt4nk gJLKWYOqidHStMn1nCQLL8bCpspF9ePqnkGdDAjMn1+XQkBetXY8sBya7aIX+jMDF2 WU4hSJNNgAW4uPeyCHRMGxcg6RZjZ3Jd6vGK3pdc= Received: from buildd.core.avm.de (buildd-sv-01.avm.de [172.16.0.225]) by mail-auth.avm.de (Postfix) with ESMTPA id 8FF5C8001F; Tue, 9 Jan 2024 14:24:10 +0100 (CET) Received: from reykjavik.ads.avm.de (unknown [172.17.89.91]) by buildd.core.avm.de (Postfix) with ESMTPS id 848DC180DE2; Tue, 9 Jan 2024 14:24:10 +0100 (CET) Date: Tue, 9 Jan 2024 14:24:07 +0100 From: Nicolas Schier To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Ben Hutchings , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, Nicolas Schier Subject: Re: [PATCH 1/5] kbuild: deb-pkg: move 'make headers' to build-arch Message-ID: References: <20231230135200.1058873-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-purgate-ID: 149429::1704806650-92EC05FF-B30D294E/0/0 X-purgate-type: clean X-purgate-size: 2372 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean On Tue, Jan 09, 2024 at 01:38:07PM +0900, Masahiro Yamada wrote: > On Sat, Dec 30, 2023 at 10:52 PM Masahiro Yamada wrote: > > > > Strictly speaking, 'make headers' should be a part of build-arch > > instead of binary-arch. > > > > 'make headers' constructs read-to-copy UAPI headers in the kernel s/read/ready/ ? > > directory. > > > > Signed-off-by: Masahiro Yamada > > --- > > > > scripts/package/builddeb | 1 - > > scripts/package/debian/rules | 4 ++-- > > 2 files changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/scripts/package/builddeb b/scripts/package/builddeb > > index cc8c7a807fcc..842ee4b40528 100755 > > --- a/scripts/package/builddeb > > +++ b/scripts/package/builddeb > > @@ -155,7 +155,6 @@ install_libc_headers () { > > > > rm -rf $pdir > > > > - $MAKE -f $srctree/Makefile headers > > $MAKE -f $srctree/Makefile headers_install INSTALL_HDR_PATH=$pdir/usr > > > > # move asm headers to /usr/include//asm to match the structure > > diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules > > index cb084e387469..a686c37d0d02 100755 > > --- a/scripts/package/debian/rules > > +++ b/scripts/package/debian/rules > > @@ -26,8 +26,8 @@ binary-arch: build-arch > > build: build-arch build-indep > > build-indep: > > build-arch: > > - $(MAKE) $(make-opts) \ > > - olddefconfig all > > + $(MAKE) $(make-opts) olddefconfig > > + $(MAKE) $(make-opts) headers all > > > > > To avoid a build error for ARCH=um, > I will apply the following fix-up. > > > > > > diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules > index 1a18ca3c43db..098307780062 100755 > --- a/scripts/package/debian/rules > +++ b/scripts/package/debian/rules > @@ -27,7 +27,7 @@ build: build-arch build-indep > build-indep: > build-arch: > $(MAKE) $(make-opts) olddefconfig > - $(MAKE) $(make-opts) headers all > + $(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all Reviewed-by: Nicolas Schier I'm wondering if we might want to change the headers target in top-level Makefile to not bail-out for ARCH=um but only show a warning that there is nothing to export. Kind regards, Nicolas