All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Vallejo <alejandro.garciavallejo@amd.com>
To: Alejandro Vallejo <alejandro.garciavallejo@amd.com>,
	<xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Julien Grall" <julien@xen.org>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Daniel P. Smith" <dpsmith@apertussolutions.com>
Subject: Re: [PATCH v7 11/11] xen/dt: Allow CONFIG_DEVICE_TREE_PARSE to include device-tree/
Date: Wed, 16 Jul 2025 17:55:57 +0200	[thread overview]
Message-ID: <DBDLOSBU234Z.3CGVBWFIW8E1R@amd.com> (raw)
In-Reply-To: <20250715161108.141126-12-alejandro.garciavallejo@amd.com>

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@amd.com>
> ---
>  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



      reply	other threads:[~2025-07-16 15:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-15 16:10 [PATCH v7 00/11] Allow x86 to unflatten DTs Alejandro Vallejo
2025-07-15 16:10 ` [PATCH v7 01/11] x86: Replace arch-specific boot_module with common one Alejandro Vallejo
2025-07-21 22:27   ` Daniel P. Smith
2025-07-21 23:07     ` Alejandro Vallejo
2025-07-15 16:10 ` [PATCH v7 02/11] xen: Refactor kernel_info to have a header like boot_domain Alejandro Vallejo
2025-07-15 16:10 ` [PATCH v7 03/11] x86: Replace arch-specific boot_domain with the common one Alejandro Vallejo
2025-07-18  0:09   ` Stefano Stabellini
2025-07-18  6:51     ` Jan Beulich
2025-07-18  6:47   ` Jan Beulich
2025-07-15 16:10 ` [PATCH v7 04/11] xen/dt: Move bootfdt functions to xen/bootfdt.h Alejandro Vallejo
2025-07-21 11:24   ` Oleksii Kurochko
2025-07-15 16:11 ` [PATCH v7 05/11] xen/dt: Move bootinfo functions to a new bootinfo.h Alejandro Vallejo
2025-07-21 11:52   ` Oleksii Kurochko
2025-07-15 16:11 ` [PATCH v7 06/11] xen/dt: Rename bootfdt.c -> bootinfo-fdt.c Alejandro Vallejo
2025-07-17 14:43   ` Orzel, Michal
2025-07-15 16:11 ` [PATCH v7 07/11] xen/dt: Extract bootinfo-independent functions to bootfdt.c Alejandro Vallejo
2025-07-17 14:43   ` Orzel, Michal
2025-07-15 16:11 ` [PATCH v7 08/11] xen/dt: Extract helper to map nodes to module kinds Alejandro Vallejo
2025-07-15 16:11 ` [PATCH v7 09/11] xen: Split HAS_DEVICE_TREE in two Alejandro Vallejo
2025-07-21 11:34   ` Oleksii Kurochko
2025-07-21 22:08   ` Daniel P. Smith
2025-07-15 16:11 ` [PATCH v7 10/11] xen/dt: ifdef out DEV_DT-related bits from device_tree.{c,h} Alejandro Vallejo
2025-07-15 16:11 ` [PATCH v7 11/11] xen/dt: Allow CONFIG_DEVICE_TREE_PARSE to include device-tree/ Alejandro Vallejo
2025-07-16 15:55   ` Alejandro Vallejo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DBDLOSBU234Z.3CGVBWFIW8E1R@amd.com \
    --to=alejandro.garciavallejo@amd.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bertrand.marquis@arm.com \
    --cc=dpsmith@apertussolutions.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.