First of all you are going to need Xcode installed. It's in the App Store. Then download the Sierra XNU Preparation from the GitHub link below.. Open up Terminal and drag the build.sh file onto the Terminal window and press Enter. It'll ask for the password to perform the Sudo function.
Once it's done the System will have the required dependencies to build the XNU.
Now you can download the latest Sierra source. As of now it's 10.12.4. Here's the link,
Put it somewhere for example the desktop and unzip it. Then in Terminal run,
Now you can apply my patches which are also attached at the bottom of this post. Still in Terminal in the XNU folder run this command. After the < Drag the diff onto the Terminal Window and press enter.
patch -p1 <
This will apply the patches onto the source. You are now free to tinker with the source code. Once ready to build run this in Terminal,
sudo make SDKROOT=macosx ARCH_CONFIGS=X86_64 KERNEL_CONFIGS=RELEASE
If it completes successfully the built kernel will be in BUILD/obj/RELEASE_X86_64/
- Script added to GitHub.
- dtrace updated.
- AvailablityVersions updated.
- Libdispatch updated.
- Diff updated.
Installed Operating Systems: Catalina 10.15.4 - Windows 10 Pro (Insider)
CPU: Ryzen 5 3600 Motherboard: MSI MPG X570 Gaming Plus RAM: 16GB DDR4 3200MHz Graphics: ASUS ROG Strix RX560
HDD: 960 EVO 500GB - MX500 250GB - 2TB Seagate - 640GB WDC - 500GB WDC LAN: RTL8111 Sound: HDMI
Other: USB Bluetooth - USB Wireless Mouse and Keyboard Bootloader: OpenCore