summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2023-01-28 17:24:05 +0100
committerMichael Brown2023-01-28 17:26:28 +0100
commit5bf8b115271fe7cfb45d0e83ef9f29fcf609068a (patch)
tree6850dede7ae03a6f00d5c6e6ebe4cd812d6ff0ca /src/util
parent[tcp] Update maximum window size to 2MB (diff)
downloadipxe-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/util')
-rw-r--r--src/util/efirom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/efirom.c b/src/util/efirom.c
index 95feaf23..8ac7966e 100644
--- a/src/util/efirom.c
+++ b/src/util/efirom.c
@@ -28,6 +28,8 @@
#include <errno.h>
#include <assert.h>
#include <getopt.h>
+
+#define EFI_HOSTONLY
#include <ipxe/efi/Uefi.h>
#include <ipxe/efi/IndustryStandard/PeImage.h>
#include <ipxe/efi/IndustryStandard/Pci22.h>