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

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


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Mon, 9 Feb 2026 13:42:05 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=citrix.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=+PPitlFRaP6lgCZ3/SzjstNFgsyt9LHNuxmswqteW/c=; b=GxU0Dyui9lv4Wmu9qAmy9ExDxX4SOJRmJBkhVOImYc3e4cvzgjfkYOQ9dtz4QIEnbmJ4Wz22m5DxpGJEEOkRNIIFPfoV9B9E7h4eNRPSK+eg8zEXoKIrMPx6Sk40B/VTb7mj52SB2GPJSEFPZrXdkRhcq8IUBOEiyQ4oaE++ptXe9WcsePF6GVvCb+KfWdi2/1BDX/PwU9VEvmRoqXu/l1xy7wEByh59Y+vqQ5U72EIZf5F+rHdME6E9I9gDSsMWY91SeQOucqCFVokgN/6mUjBAplol/DbwLTZ/q+ecDux/smvZ4AAunDryWaiiRkJK7dEmvGzi7HlKF4kD1h3XXw==
  • 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=+PPitlFRaP6lgCZ3/SzjstNFgsyt9LHNuxmswqteW/c=; b=exqA1K723npB0k0vJmcQQ6h0KbakwYeQFabnINhjbx4OW8C7vjgifXUBZQ8DM0MEZ94MplMfvWRqQCK9kFVlVdDbHkjwI68jgzAm5uYMQyVgIebzOjv7U+b7vj2YN0utrJRoC9zFpgiFc5+ffvqmva+WaSyQ7SR/AkWL6+QXciiEFOwlkiArvc9TL2N9poFsyWi4YFwFs7/K8QWgwUF3DTUoCZEaxdaTnxNmjNg2FTkDRDXjmtG+185OeLrbGQJjFal03qFa+oKPQyGPgff8lGagMGIkmQqQnKyOJKUWny3Eu4uxAD2KUQrWBtmVcwg7I9d3CVbRAuOMPskeijLslg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=of7bS4nmz0xYfrKdb5EZZ4oNuL7wpkSSE9i8WP5ZB/oVzro2ZXjH3So6qmcRiVA8QHTUYDeU/aZzND4sDKgNoxnmNSetHCrvMLKDziOgI4ta2iMprBt+Sqct+3Px1WLqNRk/VAR3OkspHpZ5UDPnK/r+izDJ7POTUmyOSt/wXkV1wBvNmsjUn4JQ7Jx950a1l2+TYxIT/qoB36fdwtoDBE9ISU6+BTIeTXHjx6ZSvPDeSv+N3+vp5gAj+4n6NYnjYC0NE63VPljNwrOk2B1e/rKjnpbutFjCyG2KzKo2tZAsI5s/fn3/JvSJ+fjxhEM6baFMKsp81zSpYTIliimUcw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zCAxX7OY1Kk61xNRcIx3M3jUy2ct36I0TsDVNYud40XXHxk29jXoGAwqKgZNfiQ7V64HORP/eYyAFn1Qki/2i2Qu0XF8n1DYKquHYEvovg55rP9Ohk8Kwm9ByhUXJWANeQnzw+gB+lb8ot2k8X18omyJZlSHCHaw8D2iqVJ7twr4b/ehXiEHaJZdLBrpOrddfZEDTc9g9Jer48SXB8oiQaQoyO7/+18iwI34uoEZubhhcwJ2+5DxOP9Xw4uHn+xeOgbrJRdIY5KdnLaZHKeZHL/6aMGAMPE9wkaXGHbM1HCZ4W20Fuv+ffVrEDm8AIHHRBpToR8eoENxVxgQv5jNhQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.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 13:43:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHcmbF131JHt0VrQEG2yzDmCYz1i7V6XACAgAAB1gCAAAHIAIAAALSA
  • Thread-topic: [PATCH v5] xen: Add Darwin.mk


> 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.

Cheers
Bertrand


> 
> Thanks, Roger.



 


Rackspace

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