[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5] xen: Add Darwin.mk


  • To: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 9 Feb 2026 15:23:45 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xDLOQZu1BZE5A+JIJb3+whYaBA/ZW/ig7mAIpIGC4Pw=; b=rJA3YpBdrXQgS7uK5ddnsyE4OBr+jjjdEcmWubeF/WXXs0pFYbeC+WmCadhQXLBUVsxj+w74uUp7HZK5AITE728VtSrdhhSD6wBL815in/Q8fXeqauoVGWWqhJZRuuTJIVejdqK5VMh9L8+VgH0gYs7jrpjnMuauQjysGmklkVRSX0pN4KORYL2D/A08DXGPtyFn+yUHho9m5XyZ2Qv2pHUi5YeDR/RA2YsYPgBrEmuwyAItnUAHgkF51h+/xsNlKAy9Skq/KCxCAyzSxNnio423ZomUwJ0ZKv5NP8VP2A95GG+QpUPQrUo4MY5bn2zOwMAynLKuXz/weNFoveOikw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D5XUzoYEd0Ngu0pirpdHJJizLUzpvX0FmZM5Q+9zexS/jeU2e2wug/f8kM32zXKKSw/dAiNZ8YKCaKnW9414YBHE+N6HqXl5yGzAoUANprPASAQy0I+misf1BlUHFqnt4BP9Z0yhvHVz5pf1bXVwXxFH2z44veyEZsxYH4llbfIwQ/PmuPxUWQAr2ReNPJy8yLH7S5tC7D3BR9tUwEEnb2thbkHjEoqVKJBRkNC9B48DqejMU2oQuOfxAijNssPrejP2RqW/sA0zPugbhC+pOaEORpAdQvhMI7/2sHlq90xe8kSPCJ5OeDmgbmtmqSzstM3R1VIPEwsnzrixoiLVzg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Mon, 09 Feb 2026 14:23:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Feb 09, 2026 at 01:42:05PM +0000, Bertrand Marquis wrote:
> 
> 
> > On 9 Feb 2026, at 14:39, Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
> > 
> > On Mon, Feb 09, 2026 at 01:33:13PM +0000, Bertrand Marquis wrote:
> >> Hi Roger
> >> 
> >>> On 9 Feb 2026, at 14:26, Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
> >>> 
> >>> On Mon, Feb 09, 2026 at 11:46:44AM +0100, 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
> >>> 
> >>> This needs 'xen' target passed.
> >> 
> >> Without any target, xen is built by default so i kept the simplest 
> >> possible command
> >> But I am ok with adding xen
> > 
> > With the `cd xen` omitted, won't that also attempt to build the tools
> > then?
> 
> This is supposed to be called in the xen sub-directory not in the main 
> directory.
> 
> Now i get why you wanted the xen (and hence why there was the cd xen before)
> 
> Maybe having -C xen would be a better idea, building from main Makefile could
> bring other side effects i guess.

I don't have a strong opinion, both -C xen or xen seem to work for me.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.