Bläddra i källkod

[build] Fix ARM32 EFI builds with current EDK2 headers

EDK2 commit 6440385 ("MdePkg/Include: Add enumeration size checks to
Base.h") enforced the UEFI specification mandate that enums should
always be 32 bits.  This revealed a latent bug in iPXE, which does not
build with -fno-short-enums.

Fix by adding -fno-short-enums to CFLAGS for ARM32 EFI builds.

Reported-by: Benjamin S. Allen <bsallen@alcf.anl.gov>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 år sedan
förälder
incheckning
8866c919f8
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      src/arch/arm32/Makefile.efi

+ 4
- 0
src/arch/arm32/Makefile.efi Visa fil

@@ -1,5 +1,9 @@
1 1
 # -*- makefile -*- : Force emacs to use Makefile mode
2 2
 
3
+# UEFI requires that enums are always 32 bits
4
+#
5
+CFLAGS		+= -fno-short-enums
6
+
3 7
 # Specify EFI image builder
4 8
 #
5 9
 ELF2EFI		= $(ELF2EFI32)

Laddar…
Avbryt
Spara