> On 9 Feb 2026, at 14:01, Jan Beulich <[email protected]> wrote:
>
> On 09.02.2026 11:46, Bertrand Marquis wrote:
>> Xen does not provide a Darwin build configuration useable on Mac OS.
>> It is possible to build Xen Hypervisor (tools are not supported) with a
>> toolchain able to produce ELF binaries (GCC or others).
>>
>> Add config/Darwin.mk to include StdGNU.mk and force
>> XEN_COMPILE_ARCH=unknown, ensuring Darwin builds always follow
>> the cross-compile path so compiling on Mac OS is always handled as a
>> cross compilation case.
>>
>> Only compiling the hypervisor has been tested !
>>
>> An example of how to build the hypervisor for arm64 on Mac OS
>> (tools cannot be build for now) using a compiler from brew:
>> - brew install aarch64-elf-gcc aarch64-elf-binutils
>> - make XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-elf- HOSTCC=clang
>>
>> Signed-off-by: Bertrand Marquis <[email protected]>
>
> Acked-by: Jan Beulich <[email protected]>
>
>> Change-Id: Iba91634afbaab58767bb8744b4b722ce5732a6dd
>
> This wants removing, I suppose.
oh yes sorry for that
>
>> --- /dev/null
>> +++ b/config/Darwin.mk
>> @@ -0,0 +1,6 @@
>> +# Use GNU tool definitions as the tools we are using are either GNU
>> compatible
>> +# or we only use features which are supported on Mac OS.
>> +include $(XEN_ROOT)/config/StdGNU.mk
>> +
>> +# Cross compile on Mac OS, only hypervisor build has been tested, no tools
>> +XEN_COMPILE_ARCH = unknow
>
> There was an 'n' lost, as the reason for forcing cross-compilation also
> isn't stated. I'll take the liberty to add both back in.
ok with me.
Cheers
Bertrand
>
> Jan