site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Spamdiagnosticmetadata: NSPM Spamdiagnosticoutput: 1:99 Thread-index: AQHTUnmrhRlnp3UncEKKzkf0ceYd56L+ajCAgAAC3IA= Thread-topic: Building XNU for ARM64 I came up with this patch of the makefiles, it gets the build going but it exits very early due to missing declarations and headers for ARM, and I haven’t had the time to look at those yet. Here are the contents of the patch: --- xnu-4570.1.46/makedefs/MakeInc.def +++ xnu-4570.1.46/makedefs/MakeInc.def @@ -7,11 +7,11 @@ # # # Architecture Configuration options # -SUPPORTED_ARCH_CONFIGS := X86_64 X86_64H +SUPPORTED_ARCH_CONFIGS := X86_64 X86_64H ARM64 ARM64 # # Kernel Configuration options # SUPPORTED_KERNEL_CONFIGS = RELEASE DEVELOPMENT DEBUG PROFILE KASAN @@ -20,10 +20,12 @@ # Machine Configuration options # SUPPORTED_X86_64_MACHINE_CONFIGS = NONE SUPPORTED_X86_64H_MACHINE_CONFIGS = NONE +SUPPORTED_ARM_MACHINE_CONFIGS = NONE +SUPPORTED_ARM64_MACHINE_CONFIGS = NONE # # Setup up *_LC variables during recursive invocations # diff -rU5 xnu-4570.1.46/makedefs/MakeInc.top xnu-4570.1.46/makedefs/MakeInc.top --- xnu-4570.1.46/makedefs/MakeInc.top +++ xnu-4570.1.46/makedefs/MakeInc.top @@ -85,11 +85,12 @@ # override DEFAULT_I386_MACHINE_CONFIG := NONE override DEFAULT_X86_64_MACHINE_CONFIG := NONE override DEFAULT_X86_64H_MACHINE_CONFIG := NONE +override DEFAULT_ARM_MACHINE_CONFIG := NONE +override DEFAULT_ARM64_MACHINE_CONFIG := NONE - # This is typically never specified (TARGET_CONFIGS is used) ifndef MACHINE_CONFIGS MACHINE_CONFIGS := DEFAULT endif I hope this helps, and good luck with building the rest! Ethan PureDarwin Developer
On 31 Oct 2017, at 18:54, Terry Thibault <bbrutalhhonesty@gmail.com> wrote:
Hi all,
Apple recently released the source for Darwin on ARM on their Github (https://github.com/apple/darwin-xnu). Going through and building the kernel as normal, using `make SDKROOT=macosx ARCH_CONFIGS=X86_64 KERNEL_CONFIGS="RELEASE DEVELOPMENT DEBUG"` works fine. It'll build a kernel for the X86_64 architecture. However, when I specify ARCH_CONFIGS=ARM64, I get an error "Unsupported CURRENT_MACHINE_CONFIG".
Has anyone else been able to build the XNU for ARM64?
Thanks! Terry
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Ethan Sherriff