From: Daniel P. Smith Date: Mon, 14 Apr 2025 11:08:56 +0000 (+0200) Subject: kconfig: introduce option to independently enable libfdt X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=373c67d8a65556278e7cf8a226d19682c626de68;p=people%2Fandrewcoop%2Fxen.git kconfig: introduce option to independently enable libfdt 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 Signed-off-by: Jason Andryuk Reviewed-by: Denis Mukhin Acked-by: Jan Beulich --- diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 42a2b6a03f..be28060716 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 @@ -109,6 +110,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 f625031d16..98f0873056 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -80,7 +80,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)