These two files are not used in the EFI app and it does not make sense to compile them in. Omit relocate.c and physmem.c
Signed-off-by: Simon Glass <s...@chromium.org> --- arch/x86/lib/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index afb6abb57d3..253207b9987 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -35,8 +35,11 @@ obj-$(CONFIG_I8259_PIC) += i8259.o obj-$(CONFIG_I8254_TIMER) += i8254.o obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o obj-y += pirq_routing.o + +ifndef CONFIG_EFI_APP obj-y += relocate.o obj-y += physmem.o +endif obj-$(CONFIG_INTEL_MID) += pmu.o obj-$(CONFIG_X86_RAMTEST) += ramtest.o obj-$(CONFIG_INTEL_MID) += scu.o -- 2.43.0