diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-07 08:47:07 -0700 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2016-11-14 23:24:03 +0100 |
commit | bb1ae55948377b6b75d2230fd8fea69106477d81 (patch) | |
tree | 5ce66dec9c8a1daea079f9d6ffb0f7a77d2af95d /Makefile | |
parent | 5abd9137d5329e84827c265bc950287043eac636 (diff) | |
download | u-boot-imx-bb1ae55948377b6b75d2230fd8fea69106477d81.zip u-boot-imx-bb1ae55948377b6b75d2230fd8fea69106477d81.tar.gz u-boot-imx-bb1ae55948377b6b75d2230fd8fea69106477d81.tar.bz2 |
efi: Makefile: Export variables for use with EFI
When building an EFI app we need three things:
- start-up code
- relocation code
- link script
These are all different for each architecture. We also need special
compiler flags in some cases.
Add top-level Makefile variables for these along with documentation.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -527,6 +527,15 @@ endif endif endif +# These are set by the arch-specific config.mk. Make sure they are exported +# so they can be used when building an EFI application. +export EFI_LDS # Filename of EFI link script in arch/$(ARCH)/lib +export EFI_CRT0 # Filename of EFI CRT0 in arch/$(ARCH)/lib +export EFI_RELOC # Filename of EFU relocation code in arch/$(ARCH)/lib +export CFLAGS_EFI # Compiler flags to add when building EFI app +export CFLAGS_NON_EFI # Compiler flags to remove when building EFI app +export EFI_TARGET # binutils target if EFI is natively supported + # If board code explicitly specified LDSCRIPT or CONFIG_SYS_LDSCRIPT, use # that (or fail if absent). Otherwise, search for a linker script in a # standard location. |