On Thu, 7 Nov 2019 at 17:34, Heinrich Schuchardt <xypron.g...@gmx.de> wrote: > > 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.g...@gmx.de> > --- > include/host_arch.h provokes some false positives in checkpatch.pl as this > include is also meant to be used in Makefile. > --- > Makefile | 19 +++++++++++++++++ > arch/sandbox/config.mk | 28 ++++++++++++++++++++++++ > arch/sandbox/lib/crt0_sandbox_efi.S | 32 ++++++++++++++++++++++++++++ > arch/sandbox/lib/reloc_sandbox_efi.c | 32 ++++++++++++++++++++++++++++ > cmd/Kconfig | 2 +- > include/host_arch.h | 24 +++++++++++++++++++++ > lib/efi_loader/Makefile | 3 +++ > 7 files changed, 139 insertions(+), 1 deletion(-) > create mode 100644 arch/sandbox/lib/crt0_sandbox_efi.S > create mode 100644 arch/sandbox/lib/reloc_sandbox_efi.c > create mode 100644 include/host_arch.h
Reviewed-by: Simon Glass <s...@chromium.org> Do you need the #if 0 bit? Regards, Simon