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 295FCCA100C for ; Fri, 30 Aug 2024 19:55:23 +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=8ffM0oj/VoAWiRvIYhx2YzkqNpRjhG4e8iNPq0uer6M=; b=uuLDFeXLjh45qkUcf9ftQQgAlv rqhi4MmmwXB7X9wSUafRFFHgVhMuCgXvaDEbFB9RHreh6ppIx3VBdORBEjSV2+o0o+j+4JYNRIoZl H2ZihvJ/8Il4I3b9FM7SPFQvliehub0KfyJDNgaY4Qs+ys8BDU3L7ymlyZmuWYwtIlFHSGlR2nyvW tDh0W1Oz4QVTruy8sn7QcCNgTBKdevxNTyPAdPitMK4NFwUPvV7Gc4SByefWKsKuny3760GpYDz2m oVjViUs6L+XgEbebkgohXLhQ61pIxE3XZubKoJGlyoR8k6xsb7kUGzWN3jp5/tFCNm4p0z0fVa8os JJNUoq1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk7i5-00000007XjK-1twQ; Fri, 30 Aug 2024 19:55:06 +0000 Received: from e3i12.smtp2go.com ([158.120.84.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk7hA-00000007XfO-3ECi for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 19:54:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpservice.net; i=@smtpservice.net; q=dns/txt; s=a1-4; t=1725047640; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=8ffM0oj/VoAWiRvIYhx2YzkqNpRjhG4e8iNPq0uer6M=; b=bQTwKRWDISrkvPTQ/eTNhHVouYtP929J/+69UHoEfDEs9VJ/BP9ALeCXeGy0+/J7wFPq4 rrqzRggi8D9zo0nd4I0gcI0q+SVK+5HWgMVCBhFkv1goNDcRAeuVDegmrcBY6gigsO1MPq6 zdy7L64UTchLE6oNCgbjcMuFHNA3+T3uS2zWk4hn9diymWbefmPKJ5Il1wyy+NekdSBWir2 B7bODHYARObGs8I1DaLRaC4cAgQ8QGz/jfUEcuIMh6cm5utTgzN/zw19ZKH+81tz9zrSkLl ZoboFIuTVecypToeA8rFYYiniLFyexZ6hUcEi7XSzOwjEzwZhUb3fpj4ie+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fjasle.eu; i=@fjasle.eu; q=dns/txt; s=s1174286; t=1725047640; h=from : subject : to : message-id : date; bh=8ffM0oj/VoAWiRvIYhx2YzkqNpRjhG4e8iNPq0uer6M=; b=iKXSggyg+LBfdCYiW74qh1xev5pawGrwF3VrlrlwTGFEzGlGjyjC5DML3rZ0g8Mgv6HEr iWksfv/l1Zu7HlAq82NiOYd9SJJFXqgNCFlyAuFyYMO4qyfIkZP7ATm42gZVX4q63yvDUjz xKUhFE03uVkrNkfR2qmHcDV4TUUaOBKi+/dmFnqSTeG3C3CKzAgNfPWkEqCuJm8Vc5d9T5u wRm0TMSo4rxHwc9zw7Ki5H8nyNEBLWn3YveVvSqUjXdjR77DjUy0sChgB8KeIyz5c7yH37j 096hrOAdIlKSnEAnAAZ3lgdqNpp1IhSAK92V+pnfIO2u9j8EaiRY01bqc5Jw== Received: from [10.85.249.164] (helo=leknes.fjasle.eu) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97.1-S2G) (envelope-from ) id 1sk7gj-FnQW0hPpdBf-nWmg; Fri, 30 Aug 2024 19:53:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1725047604; bh=VrcLFN5tqkfWY7mTHOYKMf0e0KvomCFsMPrfJDAaMSY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P7Vd6NkS50dZUF4ArGNPd4emC0HPqVDT3dc+nak6w/kyFZyIa7wpU0vTqmsiIkRep lFQ7rFhNaD2Mf9eA7RsNhjnIHPRkgubjb0TmusaqfHzYKQpJgQpvZs4tHW5Z4AT4vC fDqmIJfHaxoaJYo+8KfLKLIUurdYOyn4DfkqTbOE= Received: by leknes.fjasle.eu (Postfix, from userid 1000) id 423D3449B6; Fri, 30 Aug 2024 21:53:24 +0200 (CEST) Date: Fri, 30 Aug 2024 21:53:24 +0200 From: Nicolas Schier To: Daniel Gomez , Masahiro Yamada Cc: Greg Kroah-Hartman , 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 , 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 08/12] include: add elf.h support Message-ID: References: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> <20240807-macos-build-support-v1-8-4cd1ded85694@samsung.com> <2024080717-cross-retiree-862e@gregkh> <2024080720-skyline-recapture-d80d@gregkh> <20240807-mottled-stoic-degu-d1e4cb@lindesnes> <20240823225450.spuvjs5b5ruujim4@AALNPWDAGOMEZ1.aal.scsc.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240823225450.spuvjs5b5ruujim4@AALNPWDAGOMEZ1.aal.scsc.local> X-Report-Abuse: Please forward a copy of this message, including all headers, to Feedback-ID: 1174286m:1174286a9YXZ7r:1174286sfGQOlJjcl X-smtpcorp-track: vBRpFoLaXZfm.hBAW2WEt68A4.bzJ4bgK-uvY X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_125410_202952_3F5344FF X-CRM114-Status: GOOD ( 32.23 ) 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 Sat, Aug 24, 2024 at 12:54:50AM +0200 Daniel Gomez wrote: > On Wed, Aug 07, 2024 at 05:46:03PM +0200, Nicolas Schier wrote: > > On Wed, Aug 07, 2024 at 04:18:54PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Aug 07, 2024 at 02:13:57PM +0000, Daniel Gomez wrote: > > > > > Also, as this is not internal for the kernel, but rather for userspace > > > > > builds, shouldn't the include/ path be different? > > > > > > > > Can you suggest an alternative path or provide documentation that could help > > > > identify the correct location? Perhaps usr/include? > > > > > > That is better than the generic include path as you are attempting to > > > mix userspace and kernel headers in the same directory :( > > > > Please keep in mind, that usr/include/ currently does not hold a single > > header file but is used for dynamically composing the UAPI header tree. > > > > In general, I do not like the idea of keeping a elf.h file here that > > possibly is out-of-sync with the actual system's version (even though > > elf.h should not see that much changes). Might it be more helpful to > > provide a "development kit" for Linux devs that need to build on MacOS > > that provides necessary missing system header files, instead of merging > > those into upstream? > > I took this suggestion and tried pushing a Homebrew formula/package here [1]. > I think I chose a wrong name and maybe something like "development kit" would > have been better. However, would it be possible instead to include the *.rb file > in the scripts/ directory? So users of this can generate the development kit in > their environments. I would maintain the script to keep it in sync with the > required glibc version for the latest kernel version. > > [1] https://github.com/Homebrew/homebrew-core/pull/181885 I think it sounds sensible to hold that formula file in the upstream tree. But I am not sure if scripts/ is the best location. Masahiro, what do you think? Kind regards, Nicolas