mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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>
This commit is contained in:
24
include/host_arch.h
Normal file
24
include/host_arch.h
Normal file
@@ -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
|
Reference in New Issue
Block a user