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

Re: [PATCH v7 11/11] xen/dt: Allow CONFIG_DEVICE_TREE_PARSE to include device-tree/


  • To: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Wed, 16 Jul 2025 17:55:57 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=UgFxd01cvNi2d1ZlBAHMgMKcTuXIn5hT29PHVWAES1g=; b=huFVcZKBivYqOrVvW8F946hy1jz7Ot9ckLEvUOTIe2leKNPvHDa3YNfrU1ZlFRnUXMshnm8707Mo9SkaUMXj3Dg999sEx2A5lBcMZxLciW/uVet3AKmd5+LkbzVscDoyOXBE9Rvxs2ub0eGZSm3CdBDVdvvgtJf9+Eoo81roHIZGNUj2k+Uz2nVd7edjexTf14h5rj1Kqaz9UwwaGabk32BxcCzTIVn2HODZcKzeEU4Ct7DE67gIgTK/PTCFOBm1PYYecGxAxEK66cVliJr+UutP3zJKZUrMVJcSJJlJMkq6ZFog2bysLpe1OcT/KE3XUaFZtb5VMvw/Nq3flfbrWw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XnIDPAxFCOe/P86z7LqA4NcQifK8H0XAQfgwSFdTqd5vtYQKp188GKDdc/HH9Gpo3DsLbhx0Bqz2sqLWY6WOumolQH3jN4qzF4u3yZOha99R4SHU0L40fojm5vtc1USSdXH/Lk1SsmSUiLlfIfcRNE2xDngLNDc0kg4PLaQ63LXwYKzAPjSuv6hf9S18SFWponwAsuAxquAEFSWFq7qpYCWyuLwqZQ0Xa+mA00RT5R7M/hjIUyhmbhvIWlLYHXybf7N7IF2pQ7+rnpKFA10ZIp2U6w99vqL7X/tNo7otoEYbklKSuwvAP0Gt8Tbq++lpTyOgfZwVZk7gApWGxqddtg==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 16 Jul 2025 15:56:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue Jul 15, 2025 at 6:11 PM CEST, Alejandro Vallejo wrote:
> This allows bootfdt.c and device-tree.c to be usable without
> CONFIG_HAS_DEVICE_TREE_DISCOVERY.
>
> Gate everything else on CONFIG_HAS_DEVICE_TREE_DISCOVERY.
>
> Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
> ---
>  xen/common/Makefile             | 2 +-
>  xen/common/device-tree/Makefile | 4 +++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/xen/common/Makefile b/xen/common/Makefile
> index d541fbcf49..265468d751 100644
> --- a/xen/common/Makefile
> +++ b/xen/common/Makefile
> @@ -8,7 +8,7 @@ obj-y += cpu.o
>  obj-$(CONFIG_DEBUG_TRACE) += debugtrace.o
>  obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += device.o
>  obj-$(filter-out $(CONFIG_X86),$(CONFIG_ACPI)) += device.o
> -obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += device-tree/
> +obj-$(CONFIG_DEVICE_TREE_PARSE) += device-tree/
>  obj-$(CONFIG_IOREQ_SERVER) += dm.o
>  obj-y += domain.o
>  obj-y += event_2l.o
> diff --git a/xen/common/device-tree/Makefile b/xen/common/device-tree/Makefile
> index 8abc069c4b..1459e63c85 100644
> --- a/xen/common/device-tree/Makefile
> +++ b/xen/common/device-tree/Makefile
> @@ -1,11 +1,13 @@
>  obj-y += bootfdt.init.o

Bah. From here...

>  obj-y += bootinfo-fdt.init.o
>  obj-y += bootinfo.init.o

... to here should have been deletions.

> +obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += bootinfo-fdt.init.o
> +obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += bootinfo.init.o
>  obj-y += device-tree.o
>  obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += domain-build.init.o
>  obj-$(CONFIG_DOM0LESS_BOOT) += dom0less-build.init.o
>  obj-$(CONFIG_OVERLAY_DTB) += dt-overlay.o
> -obj-y += intc.o
> +obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += intc.o
>  obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += kernel.o
>  obj-$(CONFIG_STATIC_EVTCHN) += static-evtchn.init.o
>  obj-$(CONFIG_STATIC_MEMORY) += static-memory.init.o




 


Rackspace

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