The EFI ABI requires the use of -fno-short-enums, and the EDK2 headers
will perform a compile-time check that enums are 32 bits.
The EDK2 headers may be included even in builds for non-EFI platforms,
and so the -fno-short-enums flag must be used in all 32-bit ARM
builds. Fortunately, nothing else currently cares about enum sizes.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
#
CFLAGS += -fshort-wchar
+# EFI requires that enums are always 32 bits, and nothing else
+# currently cares
+#
+CFLAGS += -fno-short-enums
+
# Include common ARM Makefile
MAKEDEPS += arch/arm/Makefile
include arch/arm/Makefile
# -*- makefile -*- : Force emacs to use Makefile mode
-# UEFI requires that enums are always 32 bits
-#
-CFLAGS += -fno-short-enums
-
# Specify EFI image builder
#
ELF2EFI = $(ELF2EFI32)