From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96BD7C3DA7F for ; Wed, 7 Aug 2024 15:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8p+8xkYytY0kAtRIiarGiLqc+3CeFPeAk9BYp1+Be+o=; b=jhKOwU//z8oKmbELJUtgKKyKnB KZB47p9onSxo28QWjsm+RjuSdgl/LbN+tvFNsvk3Fyi5CQgneJcmcJ04JSYrrVh82HRzL81QMWVGz QH9COzi5oMUDH52L1qP08BXv3a/MC30/vjxlQBHqVwe7f9jLHPPU2U9bBqewa+PHMAEF5K8P1/7p2 OYjVzXMY7svDeYG/ohJB5IX1578hYhnJfmGagqhw+DwQg/HuWOuaZq0dIHJaNp0gT5yoLTtjI6VpQ zZz91wfyQJ6hC2RTVU/j8pfK+pdVNKNx1clCIPTO9nTTDJwmj/ZbTMqjBs3Bv0h2GUIdnO5yFAkJK QlJXWG3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbiWo-00000005VIx-1pFY; Wed, 07 Aug 2024 15:24:42 +0000 Received: from smtp.domeneshop.no ([2a01:5b40:0:3006::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbiWE-00000005V8S-1pBJ for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 15:24:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fjasle.eu; s=ds202307; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8p+8xkYytY0kAtRIiarGiLqc+3CeFPeAk9BYp1+Be+o=; b=Hgcni6Ox2D8FDaPA4MfcZbKN6U 9lLSq3Q7GUU3+GllOyhCeZHbJA0tL14j23d4QDpMTl4w/aXYprIt1HdcW/FwqeS04X0pozycGo8im ZG7XpFmgej1m1/Wx1k4TniZ4dzo4Zke7LDpuRIaTpB7yIjPjLjTnZHh5hvzoqvtxxNPxlV14qvR9h 6JOTX9FjdEiSNbs9g4oD/BRv04kpaHEALD2ttmeHLVEVftdyLZ6JtwnavADmeYTL2jzkNEuhkuB7A aHsxYe0qWQ1MMw1F3+LCEHGCE8aeFHNlPAHElLODPwPnr9hrxMTSLQUbpM7aq1d8KhP01oubv1FeU 03Wqun1A==; Received: from [2001:9e8:9f8:5201:3235:adff:fed0:37e6] (port=36192 helo=lindesnes.fjasle.eu) by smtp.domeneshop.no with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sbiW1-009bha-HL; Wed, 07 Aug 2024 17:23:53 +0200 Date: Wed, 7 Aug 2024 17:23:27 +0200 From: Nicolas Schier To: da.gomez@samsung.com Cc: Masahiro Yamada , Nathan Chancellor , Lucas De Marchi , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Paul Moore , Stephen Smalley , Ondrej Mosnacek , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Greg Kroah-Hartman , Jiri Slaby , Nick Desaulniers , Bill Wendling , Justin Stitt , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, speakup@linux-speakup.org, selinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-serial@vger.kernel.org, llvm@lists.linux.dev, Finn Behrens , "Daniel Gomez (Samsung)" , gost.dev@samsung.com Subject: Re: [PATCH 02/12] kbuild: add header_install dependency to scripts Message-ID: <20240807-witty-warm-hummingbird-20c9a7@lindesnes> References: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> <20240807-macos-build-support-v1-2-4cd1ded85694@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240807-macos-build-support-v1-2-4cd1ded85694@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_082406_812926_2FA2AE02 X-CRM114-Status: GOOD ( 16.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 07, 2024 at 01:09:16AM +0200, Daniel Gomez via B4 Relay wrote: > From: Daniel Gomez > > Export kernel headers necessary for the tools located in scripts/. This > ensures kernel headers are generated before building scripts/selinux. > > Kernel headers required for building are: asm/types.h, asm/bitsperlong.h > and asm/poix_types.h. > > Signed-off-by: Daniel Gomez > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 44c02a6f60a1..7ac079955a94 100644 > --- a/Makefile > +++ b/Makefile > @@ -1173,7 +1173,7 @@ include/config/kernel.release: FORCE > # Carefully list dependencies so we do not try to build scripts twice > # in parallel > PHONY += scripts > -scripts: scripts_basic scripts_dtc > +scripts: headers_install scripts_basic scripts_dtc > $(Q)$(MAKE) $(build)=$(@) Since commit 59b2bd05f5f4 ("kbuild: add 'headers' target to build up uapi headers in usr/include", 2019-06-04), composing the user-space header tree is separated from the actual installation to $(INSTALL_HDR_PATH)/include. Thus, you do not want to depend in 'headers_install' but on 'headers' instead. Nevertheless, I am suspecting that this leads to trouble. E.g.: if scripts/* include $(objtree)/usr/include/asm/*.h this will probably break cross-arch-building. Kind regards, Nicolas