Updated Patches Allow Compiling The Linux Kernel From Within macOS

Written by Michael Larabel in Linux Kernel on 6 September 2024 at 10:41 AM EDT. 16 Comments
LINUX KERNEL
Back in 2022 were a set of patches that allowed compiling the ARM64 Linux kernel from Apple macOS hosts. The intent was for developers just wanting to do some build/smoke testing from under an Apple Silicon device running macOS to see at least any kernel changes are successfully compiling on macOS with its LLVM/Clang-based toolchain. An updated form of those patches were posted today for review.

Daniel Gomez posted a new set of patches today for enabling the Linux kernel build system to function on macOS ARM64 hosts with the LLVM toolchain. Besides needing the LLVM toolchain of macOS, Homebrew needs to be used for fetching additional C header files not otherwise found on macOS systems but necessary for compiling the Linux kernel.

macOS with Terminal


Those interested in the prospects of compiling the Linux kernel from within the confines of Apple macOS can find the newest patches on the Linux kernel mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week