aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-12-30 10:52:41 +0100
committerAlexander Graf <agraf@suse.de>2019-02-13 09:40:05 +0100
commite4fd69564532018a4124c6f9d8ba76da766629bd (patch)
tree188b22a62c12e6057aee8a64ef5d513a629c3593 /arch/arm/lib
parentcc8e34178b5f141ed997843e86248e4d53f37298 (diff)
downloadu-boot-e4fd69564532018a4124c6f9d8ba76da766629bd.zip
u-boot-e4fd69564532018a4124c6f9d8ba76da766629bd.tar.gz
u-boot-e4fd69564532018a4124c6f9d8ba76da766629bd.tar.bz2
efi_selftest: allow building on ARMv7-M
ARMv7-M only supports the Thumb instruction set. Our current crt0 code does not support it. With the patch we can build all unit tests of the EFI subsystem that do not require crt0. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 655727f..48ee6c3 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -106,5 +106,9 @@ CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
-extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
+# TODO: As of v2019.01 the relocation code for the EFI application cannot
+# be built on ARMv7-M.
+ifndef CONFIG_CPU_V7M
+#extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
+endif
extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)