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/lib/Makefile | |
parent | 6cc1a2af46c448e7d822fa4976a8d6e10fc5273b (diff) | |
download | u-boot-493d1e88b676675e0c2a8614abcba0dcbb9befa4.zip u-boot-493d1e88b676675e0c2a8614abcba0dcbb9befa4.tar.gz u-boot-493d1e88b676675e0c2a8614abcba0dcbb9befa4.tar.bz2 |
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/lib/Makefile')
-rw-r--r-- | arch/riscv/lib/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile index 2eafd71..cc562f9 100644 --- a/arch/riscv/lib/Makefile +++ b/arch/riscv/lib/Makefile @@ -11,3 +11,14 @@ obj-$(CONFIG_CMD_GO) += boot.o obj-y += cache.o obj-y += interrupts.o obj-y += setjmp.o + +# For building EFI apps +CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI) +CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI) + +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) +extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC) |