diff options
author | Alexander Graf <agraf@suse.de> | 2018-04-23 07:59:45 +0200 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2018-05-29 14:43:12 +0800 |
commit | 493d1e88b676675e0c2a8614abcba0dcbb9befa4 (patch) | |
tree | 44d9269532c66ff2db4eb46cda276d6415a59219 /arch/riscv/config.mk | |
parent | 6cc1a2af46c448e7d822fa4976a8d6e10fc5273b (diff) | |
download | u-boot-493d1e88b676675e0c2a8614abcba0dcbb9befa4.tar.gz |
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.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index f65ed8725df..219e66683d2 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 |