xen: Don't build libelf for Arm
authorJulien Grall <julien.grall@arm.com>
Mon, 2 Jul 2018 16:19:08 +0000 (17:19 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 11 Jul 2018 19:22:03 +0000 (12:22 -0700)
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@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Kconfig
xen/common/Kconfig
xen/common/Makefile

index f64fc567395fbd66376a64947a36dea0152b2123..c75f0526d8224e768a2f5370a5662fdd7372534c 100644 (file)
@@ -24,6 +24,7 @@ config X86
        select HAS_PDX
        select HAS_UBSAN
        select HAS_VPCI if !PV_SHIM_EXCLUSIVE
+       select NEEDS_LIBELF
        select NUMA
 
 config ARCH_DEFCONFIG
index 9043dce9377ba9e4a3d6aa7365e2c461007f6dc3..d4c0951a24461ce2bba5df8bff3918b1e1991350 100644 (file)
@@ -44,6 +44,9 @@ config HAS_GDBSX
 config HAS_IOPORTS
        bool
 
+config NEEDS_LIBELF
+       bool
+
 config NEEDS_LIST_SORT
        bool
 
index 24d4752ccc55662f686664d6539e85364ce642e4..b3e0b0ebf4d84937d35475f60470740ff864193a 100644 (file)
@@ -78,5 +78,5 @@ obj-$(CONFIG_TMEM) += $(tmem-y)
 subdir-$(CONFIG_COVERAGE) += coverage
 subdir-$(CONFIG_UBSAN) += ubsan
 
-subdir-y += libelf
+subdir-$(CONFIG_NEEDS_LIBELF) += libelf
 subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt