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>
select HAS_PDX
select HAS_UBSAN
select HAS_VPCI if !PV_SHIM_EXCLUSIVE
+ select NEEDS_LIBELF
select NUMA
config ARCH_DEFCONFIG
config HAS_IOPORTS
bool
+config NEEDS_LIBELF
+ bool
+
config NEEDS_LIST_SORT
bool
subdir-$(CONFIG_COVERAGE) += coverage
subdir-$(CONFIG_UBSAN) += ubsan
-subdir-y += libelf
+subdir-$(CONFIG_NEEDS_LIBELF) += libelf
subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt