From: Daniel Gomez <da.gomez@samsung.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>,
Tamir Duberstein <tamird@gmail.com>
Cc: rust-for-linux@vger.kernel.org, "Fiona Behrens" <me@kloenk.dev>,
"Masahiro Yamada" <masahiroy@kernel.org>,
"Nathan Chancellor" <nathan@kernel.org>,
"Nicolas Schier" <nicolas@fjasle.eu>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <benno.lossin@proton.me>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"David S. Miller" <davem@davemloft.net>,
"Kris Van Hees" <kris.van.hees@oracle.com>,
"Íñigo Huguet" <ihuguet@redhat.com>,
"Thomas Weißschuh" <linux@weissschuh.net>,
"Vegard Nossum" <vegard.nossum@oracle.com>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Subject: Re: [PATCH] rust: query the compiler for dylib path
Date: Thu, 10 Oct 2024 10:31:22 +0200 [thread overview]
Message-ID: <D4RZIDTJFVX5.16Z4XSB5IW6D1@samsung.com> (raw)
In-Reply-To: <CANiq72=geQY8f1J4rEfb-2UP+MOTY031tc=t1wuPNTVzS6tiSQ@mail.gmail.com>
On Wed Oct 9, 2024 at 3:12 PM CEST, Miguel Ojeda wrote:
> On Wed, Oct 9, 2024 at 2:57 PM Tamir Duberstein <tamird@gmail.com> wrote:
>>
>> What would you have me link to? With this patch applied and using
>
> I was thinking perhaps the series from Daniel, if that is the latest
> discussion (?), i.e. I would like to understand what is the policy
> around changes like this, what happens if it breaks, etc.
Building Linux in macOS is now supported for arm64 (targets tested: allyesconfig
and defconfig). The upstream policy is to use the build system variables to
configure the necessary tweaks to support building in macOS. However, this
will not always be possible then, patches are welcome from the build system
maintainer to support "portability" across OSes. But not full integration.
Please, let me know if this is not clear.
This policy forces macOS users to provide their own environment, documentation
and dependencies. I created bee-headers with the intention of providing all this
(including the missing byteswap, elf and endian headers) as reference or for
developers to use.
So, after installing bee-headers and all other linux dependencies (llvm, sed,
awk, etc), one would simply do:
source bee-init # To initiate the build enviroment
make LLVM=1 defconfig
make LLVM=1 -j$(nproc)
Here a more detailed documentation:
https://github.com/bee-headers/homebrew-bee-headers/blob/main/README.md
The last version of the series is v3 [1], which fixes a build error that cannot
be fixed in macOS via build system environment. This is enabled when using Intel
Xe Graphics (DRM_XE), included in allyesconfig target.
[1] https://lore.kernel.org/all/20240925-macos-build-support-v3-1-233dda880e60@samsung.com/
>
>> https://github.com/bee-headers/homebrew-bee-headers I was able to build a kernel
>> on my apple silicon mac. Relevant config:
>
> That is great.
>
> Thanks!
>
> Cheers,
> Miguel
next prev parent reply other threads:[~2024-10-10 8:31 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 22:48 Tamir Duberstein
2024-10-09 12:42 ` Miguel Ojeda
2024-10-09 12:56 ` Tamir Duberstein
2024-10-09 13:12 ` Miguel Ojeda
2024-10-09 13:18 ` Tamir Duberstein
2024-10-09 14:07 ` [PATCH v3] " Tamir Duberstein
2024-10-09 14:28 ` Miguel Ojeda
2024-10-09 14:33 ` [PATCH v4] " Tamir Duberstein
2024-10-09 14:20 ` [PATCH] " Miguel Ojeda
2024-10-09 14:47 ` Tamir Duberstein
2024-10-12 13:17 ` Miguel Ojeda
[not found] ` <CGME20241010083123eucas1p2432a0bbbf37e85599b477d92965d9514@eucas1p2.samsung.com>
2024-10-10 8:31 ` Daniel Gomez [this message]
2024-10-10 14:28 ` [PATCH v5] " Tamir Duberstein
2024-10-14 18:44 ` Masahiro Yamada
2024-10-12 13:41 ` [PATCH] " Miguel Ojeda
2024-10-12 14:25 ` Tamir Duberstein
2024-10-12 23:37 ` Miguel Ojeda
2024-10-12 23:52 ` Tamir Duberstein
2024-10-14 18:45 ` Masahiro Yamada
2024-10-14 19:08 ` Miguel Ojeda
2024-10-15 1:10 ` Tamir Duberstein
2024-10-15 10:33 ` Miguel Ojeda
2024-10-15 15:05 ` Tamir Duberstein
2024-10-15 15:30 ` Miguel Ojeda
2024-10-15 15:53 ` Tamir Duberstein
2024-10-16 1:35 ` Masahiro Yamada
2024-10-15 9:10 ` Miguel Ojeda
[not found] ` <CGME20241010080828eucas1p1a1fbd99e5f7bb1c454f14ba4fa19a3e1@eucas1p1.samsung.com>
2024-10-10 8:08 ` Daniel Gomez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D4RZIDTJFVX5.16Z4XSB5IW6D1@samsung.com \
--to=da.gomez@samsung.com \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=davem@davemloft.net \
--cc=gary@garyguo.net \
--cc=ihuguet@redhat.com \
--cc=kris.van.hees@oracle.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=masahiroy@kernel.org \
--cc=me@kloenk.dev \
--cc=miguel.ojeda.sandonis@gmail.com \
--cc=nathan@kernel.org \
--cc=nicolas@fjasle.eu \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tamird@gmail.com \
--cc=tmgross@umich.edu \
--cc=vegard.nossum@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®