Re: Looking for building instructions for xnu repo
Re: Looking for building instructions for xnu repo
- Subject: Re: Looking for building instructions for xnu repo
- From: Jaikiran Pai via Darwin-kernel <email@hidden>
- Date: Thu, 17 Oct 2024 18:49:57 +0530
Hello Ken,
On 16/10/24 8:19 pm, Ken Hornstein wrote:
I am looking for some inputs on building the xnu source that's published
at https://github.com/apple-oss-distributions/xnu/. The README.md
in that repo seems to indicate that it should be buidable locally
https://github.com/apple-oss-distributions/xnu/blob/main/README.md.
However, I have tried various times to get the build to work on my local
macosx M1 but haven't been able to.
It's been my experience that Apple isn't so great at updating that sort
of documentation and you have to be prepared to do some grunt work in
figuring out the missing pieces. But ... forgive me for chiding you
for not at least trying a basic Google search, as the error you're
getting about the missing "availability.pl" script seems relatively
straightforward. A quick search (using "macos kernel availability.pl")
I had actually searched when I run into that error. But my search (in
duckduckgo) was literally "Unable to locate
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk//usr/local/libexec/availability.pl"
and that hadn't yielded anything useful. But point taken, I should have
searched more.
for me finds the following recipies which should get you much closer:
https://github.com/upx/upx/issues/612
https://kernelshaman.blogspot.com/2021/02/building-xnu-for-macos-112-intel-apple.html
This is very useful indeed. I am going to try out those steps and
experiment a bit and see how it goes. I'll provide an update (hopefully
about a successful build).
Thank you both Ken and Shon for your inputs so far.
-Jaikiran
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden