diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-11-07 08:05:17 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-11-12 23:13:54 +0100 |
commit | 3b4847cbee7cf5c2a6ea19c25003876d0cba4ced (patch) | |
tree | 9a3ce2aad6d03b5bb61018611e9d8314f70f036f /lib | |
parent | 7264e21fdead677687934eecda6ac98f37851acf (diff) | |
download | u-boot-3b4847cbee7cf5c2a6ea19c25003876d0cba4ced.zip u-boot-3b4847cbee7cf5c2a6ea19c25003876d0cba4ced.tar.gz u-boot-3b4847cbee7cf5c2a6ea19c25003876d0cba4ced.tar.bz2 |
efi_loader: support building UEFI binaries on sandbox
On the sandbox the UEFI binaries must match the host architectures.
Adjust the Makefiles. Provide the PE/COFF header and relocation files.
Allow building helloworld.efi on the sandbox.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile index 01769ea..7db4060 100644 --- a/lib/efi_loader/Makefile +++ b/lib/efi_loader/Makefile @@ -6,6 +6,9 @@ # This file only gets included with CONFIG_EFI_LOADER set, so all # object inclusion implicitly depends on it +asflags-y += -DHOST_ARCH="$(HOST_ARCH)" +ccflags-y += -DHOST_ARCH="$(HOST_ARCH)" + CFLAGS_efi_boottime.o += \ -DFW_VERSION="0x$(VERSION)" \ -DFW_PATCHLEVEL="0x$(PATCHLEVEL)" |