diff options
| author | Michael Brown | 2023-01-28 17:24:05 +0100 |
|---|---|---|
| committer | Michael Brown | 2023-01-28 17:26:28 +0100 |
| commit | 5bf8b115271fe7cfb45d0e83ef9f29fcf609068a (patch) | |
| tree | 6850dede7ae03a6f00d5c6e6ebe4cd812d6ff0ca /src/include | |
| parent | [tcp] Update maximum window size to 2MB (diff) | |
| download | ipxe-5bf8b115271fe7cfb45d0e83ef9f29fcf609068a.tar.gz ipxe-5bf8b115271fe7cfb45d0e83ef9f29fcf609068a.tar.xz ipxe-5bf8b115271fe7cfb45d0e83ef9f29fcf609068a.zip | |
[efi] Build util/efirom as a host-only binary
As with util/elf2efi32 and util/elf2efi64 in commit a99e435 ("[efi] Do
not rely on ProcessorBind.h when building host binaries"), build
util/efirom without using any architecture-specific EDK2 headers since
the build host's CPU architecture may not be supported by EDK2.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/efi/ProcessorBind.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/ProcessorBind.h b/src/include/ipxe/efi/ProcessorBind.h index eda609b94..8cc04e15b 100644 --- a/src/include/ipxe/efi/ProcessorBind.h +++ b/src/include/ipxe/efi/ProcessorBind.h @@ -40,6 +40,9 @@ typedef uint8_t BOOLEAN; /* Define an architecture-neutral MDE_CPU macro to prevent build errors */ #define MDE_CPU_EBC +/* Define MAX_BIT in terms of UINTN */ +#define MAX_BIT ( ( ( UINTN ) 1U ) << ( ( 8 * sizeof ( UINTN ) ) - 1 ) ) + #else /* EFI_HOSTONLY */ #ifdef __i386__ |
