This code is not used with the EFI app, since it enters through a call to efi_main(). Remove start.S and crt files from the build.
Signed-off-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- (no changes since v1) arch/arm/Makefile | 2 ++ arch/arm/lib/Makefile | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index cb87a684754..2e569b330d0 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -104,7 +104,9 @@ PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) libs-y += $(machdirs) +ifndef CONFIG_EFI_APP head-y := arch/arm/cpu/$(CPU)/start.o +endif ifeq ($(CONFIG_XPL_BUILD),y) ifeq ($(CONFIG_SYS_SOC)$(CONFIG_SPL_FRAMEWORK),"mxs") diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 14e3990925a..9500ba6fddc 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -7,19 +7,21 @@ lib-$(CONFIG_USE_PRIVATE_LIBGCC) += ashldi3.o ashrdi3.o lshrdi3.o \ lib1funcs.o uldivmod.o div0.o \ div64.o muldi3.o +ifndef CONFIG_EFI_APP ifdef CONFIG_CPU_V7M obj-y += vectors_m.o crt0.o else ifdef CONFIG_ARM64 obj-y += crt0_64.o else obj-y += vectors.o crt0.o -endif +endif # CPU type ifdef CONFIG_ARM64 obj-y += setjmp_aarch64.o else obj-y += setjmp.o -endif +endif # ARM64 +endif # CONFIG_EFI_APP ifndef CONFIG_XPL_BUILD ifdef CONFIG_ARM64 -- 2.43.0