|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 5/7] xen: Don't build libelf for Arm
Now that ELF support has been dropped to boot Dom0, no-one is using
libelf within the hypervisor.
Introduce a config option to select libelf on x86 and keep unselected
for Arm.
Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
---
xen/arch/x86/Kconfig | 1 +
xen/common/Kconfig | 3 +++
xen/common/Makefile | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
index f64fc56739..3d388133ef 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -12,6 +12,7 @@ config X86
select HAS_CPUFREQ
select HAS_EHCI
select HAS_EX_TABLE
+ select HAS_ELF
select HAS_GDBSX
select HAS_IOPORTS
select HAS_KEXEC
diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 9043dce937..3cf551c736 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -17,6 +17,9 @@ config HAS_ALTERNATIVE
config HAS_DEVICE_TREE
bool
+config HAS_ELF
+ bool
+
config HAS_EX_TABLE
bool
diff --git a/xen/common/Makefile b/xen/common/Makefile
index 24d4752ccc..3cc808bd83 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -78,5 +78,5 @@ obj-$(CONFIG_TMEM) += $(tmem-y)
subdir-$(CONFIG_COVERAGE) += coverage
subdir-$(CONFIG_UBSAN) += ubsan
-subdir-y += libelf
+subdir-$(CONFIG_HAS_ELF) += libelf
subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |