summaryrefslogtreecommitdiff
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-07 18:47:10 +0300
committerAlexander Graf <agraf@suse.de>2016-11-15 01:24:04 +0300
commitdd46eef2f6e0b7dce2e6bcd85ed8caca5a6b606c (patch)
tree74f90abb47c2797ccbe52d642f6d6e3795251b67 /arch/arm/config.mk
parentc70f74a081c2005b0a4749cf8762fc14b7369ddb (diff)
downloadu-boot-dd46eef2f6e0b7dce2e6bcd85ed8caca5a6b606c.tar.xz
efi: arm: Add EFI app support
Add support for EFI apps on ARM. This includes start-up and relocation code, plus a link script and some compiler setting changes. Signed-off-by: Simon Glass <sjg@chromium.org> [agraf: Remove whitespace change, add kconfig dep] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r--arch/arm/config.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 542b897c31..27914a95b9 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -13,6 +13,9 @@ CONFIG_STANDALONE_LOAD_ADDR = 0xc100000
endif
endif
+CFLAGS_NON_EFI := -fno-pic -ffixed-r9 -ffunction-sections -fdata-sections
+CFLAGS_EFI := -fpic -fshort-wchar
+
LDFLAGS_FINAL += --gc-sections
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
-fno-common -ffixed-r9
@@ -148,3 +151,7 @@ ifneq ($(CONFIG_VF610),)
ALL-y += u-boot.vyb
endif
endif
+
+EFI_LDS := elf_arm_efi.lds
+EFI_CRT0 := crt0_arm_efi.o
+EFI_RELOC := reloc_arm_efi.o