summaryrefslogtreecommitdiff
path: root/arch/riscv/config.mk
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2018-04-23 08:59:45 +0300
committerAndes <uboot@andestech.com>2018-05-29 09:43:12 +0300
commit493d1e88b676675e0c2a8614abcba0dcbb9befa4 (patch)
tree44d9269532c66ff2db4eb46cda276d6415a59219 /arch/riscv/config.mk
parent6cc1a2af46c448e7d822fa4976a8d6e10fc5273b (diff)
downloadu-boot-493d1e88b676675e0c2a8614abcba0dcbb9befa4.tar.xz
riscv: Add EFI application infrastructure
The hello world binary and a few selftests require to build EFI target binaries, not just the EFI host environment. This patch adds all required files to generate an EFI binary for RISC-V. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/riscv/config.mk')
-rw-r--r--arch/riscv/config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk
index f65ed8725d..219e66683d 100644
--- a/arch/riscv/config.mk
+++ b/arch/riscv/config.mk
@@ -19,10 +19,12 @@ endif
ifdef CONFIG_32BIT
PLATFORM_LDFLAGS += -m $(32bit-emul)
+EFI_LDS := elf_riscv32_efi.lds
endif
ifdef CONFIG_64BIT
PLATFORM_LDFLAGS += -m $(64bit-emul)
+EFI_LDS := elf_riscv64_efi.lds
endif
CONFIG_STANDALONE_LOAD_ADDR = 0x00000000 \
@@ -31,3 +33,6 @@ CONFIG_STANDALONE_LOAD_ADDR = 0x00000000 \
PLATFORM_CPPFLAGS += -ffixed-gp -fpic
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -gdwarf-2 -ffunction-sections
LDFLAGS_u-boot += --gc-sections -static -pie
+
+EFI_CRT0 := crt0_riscv_efi.o
+EFI_RELOC := reloc_riscv_efi.o