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

[PATCH v3 04/16] kconfig: introduce option to independently enable libfdt


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Tue, 8 Apr 2025 17:07:26 +0100
  • 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=OCvGl5qSWPYcGWEgjrtQ/PCpkzIvwhogP31QetCQZRo=; b=AAz08EdfsOsDqAM5n9sr1f7qlqM1XjUcZVrqqCv1Nj6XpXH9ue9mWvSsHwYW0qlycTf75JCJv+Z6kXLFSm3cYZ4aFB68PFFM16+4tPO410g69Uj8vuNKcU/jFqdwfYcFmDztWfhD06ROalbdUB5OfLddPCrKLZ5PkxRPQkuMzWomaSbPFzySULMs4rxtU1MnG+Wd0j5yv+L77DWjXywNYaAZdVoYzBgbsYy2EhZcXThyP7Xzqztd40plxpV0E8Js1gvpjWeUYqjebrQyfnoG7N4F2iy5YnNhSFnb6HkzvXzSTubaC/guAR+Wc34wJbIw9dZeHuC+//pgroc8LJVLUg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iku/gousZ21/CoWtL7lDRJ2yxYjsJmDEo6Nji6wFn4aNP/7BW4pts9DoxmVkjaMw7EawiRofc3Chkt8owRbWqhiPe5jZ3QRjiYFCZWxWXPM5xjqK3BnTQd+uMth9Mk/A0QnsG1zjTsB/oM2gNOdMac8H7f67uKiBUL24enDT+mG+yKK2i874owUwQwmZUE35uUb3q54qbU4r+7OHNcoIAdZNK3zF2p7j9vWF/nJSGgXPWe4jXfWAanOHxLJ0WfHeFEHCBPmVzLLo2Bth+4EQpX6OzuTJLYectXad0OkfvoEBHnXU/on8Rd93H2CqXh+ka+kcM5lZQYv9wO1fYKU/tQ==
  • Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 08 Apr 2025 16:09:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>

Currently, the inclusion of libfdt is controlled by the CONFIG_HAS_DEVICE_TREE
kconfig flag. This flag also changes behavior in a few places, such as boot
module processing for XSM. To support the ability to include libfdt without
changing these behaviors, introduce CONFIG_LIBFDT. The inclusion of
libfdt is then moved under CONFIG_LIBFDT.

Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
---
v3:
    * Use CONFIG_LIBFDT instead of CONFIG_HAS_DEVICET_TREE
---
 xen/common/Kconfig  | 4 ++++
 xen/common/Makefile | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 06ae9751aa..00f74b1e32 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -72,6 +72,7 @@ config HAS_COMPAT
 
 config HAS_DEVICE_TREE
        bool
+       select LIBFDT
 
 config HAS_DIT # Data Independent Timing
        bool
@@ -106,6 +107,9 @@ config HAS_UBSAN
 config HAS_VMAP
        bool
 
+config LIBFDT
+       bool
+
 config MEM_ACCESS_ALWAYS_ON
        bool
 
diff --git a/xen/common/Makefile b/xen/common/Makefile
index 9da8a7244d..5a9041b0ee 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -79,7 +79,7 @@ obj-y += sched/
 obj-$(CONFIG_UBSAN) += ubsan/
 
 obj-$(CONFIG_NEEDS_LIBELF) += libelf/
-obj-$(CONFIG_HAS_DEVICE_TREE) += libfdt/
+obj-$(CONFIG_LIBFDT) += libfdt/
 
 CONF_FILE := $(if $(patsubst 
/%,,$(KCONFIG_CONFIG)),$(objtree)/)$(KCONFIG_CONFIG)
 $(obj)/config.gz: $(CONF_FILE)
-- 
2.43.0




 


Rackspace

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