aboutsummaryrefslogtreecommitdiff
path: root/include/host_arch.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-11-07 08:05:17 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-11-12 23:13:54 +0100
commit3b4847cbee7cf5c2a6ea19c25003876d0cba4ced (patch)
tree9a3ce2aad6d03b5bb61018611e9d8314f70f036f /include/host_arch.h
parent7264e21fdead677687934eecda6ac98f37851acf (diff)
downloadu-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 'include/host_arch.h')
-rw-r--r--include/host_arch.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/host_arch.h b/include/host_arch.h
new file mode 100644
index 0000000..169d494
--- /dev/null
+++ b/include/host_arch.h
@@ -0,0 +1,24 @@
+#if 0
+# SPDX SPDX-License-Identifier: GPL-2.0+
+#
+# Constants defining the host architecture in assembler, C, and make files.
+# The values are arbitrary.
+#
+# Copyright 2019 Heinrich Schuchardt <xypron.glpk@gmx.de>
+#endif
+
+#if 0
+export HOST_ARCH_AARCH64=0xaa64
+export HOST_ARCH_ARM=0x00a7
+export HOST_ARCH_RISCV32=0x5032
+export HOST_ARCH_RISCV64=0x5064
+export HOST_ARCH_X86=0x0386
+export HOST_ARCH_X86_64=0x8664
+#endif
+
+#define HOST_ARCH_AARCH64 0xaa64
+#define HOST_ARCH_ARM 0x00a7
+#define HOST_ARCH_RISCV32 0x5032
+#define HOST_ARCH_RISCV64 0x5064
+#define HOST_ARCH_X86 0x0386
+#define HOST_ARCH_X86_64 0x8664