Message ID | 20180605171237.30601-6-julien.grall@arm.com |
---|---|
State | New |
Headers | show |
Series | xen/arm: Shrink down Xen on Arm | expand |
On Tue, 5 Jun 2018, Julien Grall wrote: > 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> > --- > 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 >
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
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> --- xen/arch/x86/Kconfig | 1 + xen/common/Kconfig | 3 +++ xen/common/Makefile | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-)