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

[Xen-changelog] [xen staging] xen: Don't build libelf for Arm



commit ff3c5b1e60b865ca403d7d74a6c3bead6a1fa6f2
Author:     Julien Grall <julien.grall@xxxxxxx>
AuthorDate: Mon Jul 2 17:19:08 2018 +0100
Commit:     Stefano Stabellini <sstabellini@xxxxxxxxxx>
CommitDate: Wed Jul 11 12:22:03 2018 -0700

    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>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 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..c75f0526d8 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -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
diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 9043dce937..d4c0951a24 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -44,6 +44,9 @@ config HAS_GDBSX
 config HAS_IOPORTS
        bool
 
+config NEEDS_LIBELF
+       bool
+
 config NEEDS_LIST_SORT
        bool
 
diff --git a/xen/common/Makefile b/xen/common/Makefile
index 24d4752ccc..b3e0b0ebf4 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_NEEDS_LIBELF) += libelf
 subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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