XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
gpu/xnu-cpu-metal: fetch-sources.sh pins UniXNU/AdrenoMetal
Heyang Zhou9587c779c947
diff --git a/gpu/xnu-cpu-metal/.gitignore b/gpu/xnu-cpu-metal/.gitignoreindex c23ea22..d35d09c 100644--- a/gpu/xnu-cpu-metal/.gitignore+++ b/gpu/xnu-cpu-metal/.gitignore@@ -1,6 +1,7 @@src/metal2vulkan/src/Vulkan-Loader/src/llvm-project/+src/AdrenoMetal/src/mesa/build/dist/diff --git a/gpu/xnu-cpu-metal/scripts/fetch-sources.sh b/gpu/xnu-cpu-metal/scripts/fetch-sources.shindex 43cb704..8582ffd 100755--- a/gpu/xnu-cpu-metal/scripts/fetch-sources.sh+++ b/gpu/xnu-cpu-metal/scripts/fetch-sources.sh@@ -33,6 +33,7 @@ apply_patches() { # apply_patches DIR PATCH_SUBDIRgit_at metal2vulkan https://github.com/steelbrain/metal2vulkan.git d9236a8a11d3b90a1aa27b54e2d74d3891c4d2e5 # v0.2.0, GPL-2.0-or-later / LGPL-3.0-or-latergit_at Vulkan-Loader https://github.com/KhronosGroup/Vulkan-Loader.git fa218055ff4948b159f31d43f800c808a13d51df # vulkan-sdk-1.4.363.0, Apache-2.0git_at llvm-project https://github.com/llvm/llvm-project.git ca7933e47d3a3451d81e72ac174dcb5aa28b59d1 # llvmorg-22.1.8 (arm64e llvmpipe JIT)+git_at AdrenoMetal https://github.com/UniXNU/AdrenoMetal.git cc0a4e8e57d20f4a4698753c2530875f2b10c0ca # MIT; only bridge/RustPacBoundary.c (arm64e PAC trampolines) is builtmkdir -p "$ROOT/build"[ -f "$ROOT/build/mesa-26.3.1.tar.xz" ] || curl -sSLo "$ROOT/build/mesa-26.3.1.tar.xz" https://archive.mesa3d.org/mesa-26.3.1.tar.xz[ -d mesa ] || { mkdir mesa && tar -C mesa --strip-components=1 -xf "$ROOT/build/mesa-26.3.1.tar.xz"; } # MIT (lavapipe)