Categories
Uncategorized

Build XNU 6153.141.1 ARM64

Darwin Kernel Version 19.6.0: Mon Sep  7 21:53:47 EDT 2020; binwang:XNU/BUILD/obj/DEVELOPMENT_ARM64_BCM2837

It is similar to building XNU 4903, but a few things changed. I am just writing down my quick diff here:

  • Dependencies have version dump, take the latest version. dtrace/CTF Tools need to have macosx.internal SDK string replaced with the public macOS SDK string.
  • Missing a LLVM header file. Get it from here.
  • I also commented the embedded map thing out, but there’s one more place referencing it compared to 4903.
  • IODMACommand.iig generates a duplicated const qualifier. Remove the additional const qualifier at line 116.
  • Other steps are similar.
make LOGCOLORS=y SDKROOT=iphoneos ARCH_CONFIGS=ARM64 MACHINE_CONFIGS=BCM2837 KERNEL_CONFIGS=DEVELOPMENT ARCH_STRING_FOR_CURRENT_MACHINE_CONFIG=arm64