diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-05-18 19:12:20 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-06-03 15:27:20 +0200 |
commit | f2560e2dea5d7ff2fa67b9996c5ce5e6bb644627 (patch) | |
tree | 37c75dc989272245197f307723fec4456a3059ba /arch/x86/lib | |
parent | 508d8567046fe3c0d1354fc3a7a6f81d9661a661 (diff) | |
download | u-boot-f2560e2dea5d7ff2fa67b9996c5ce5e6bb644627.tar.gz u-boot-f2560e2dea5d7ff2fa67b9996c5ce5e6bb644627.tar.bz2 u-boot-f2560e2dea5d7ff2fa67b9996c5ce5e6bb644627.zip |
efi_loader: build CRT0 and RELOC on x86_64
The efi selftest and the hello application require CRT0 and RELOC to be
built.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index 51d451f952..5a64f6eddc 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -68,8 +68,18 @@ extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o endif -ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) +ifdef CONFIG_EFI_STUB + ifeq ($(CONFIG_$(SPL_)X86_64),) extra-y += $(EFI_CRT0) $(EFI_RELOC) endif + +else + +ifndef CONFIG_SPL_BUILD +ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) +extra-y += $(EFI_CRT0) $(EFI_RELOC) +endif +endif + endif |