diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-01-23 01:26:46 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-01-23 01:26:46 +0000 |
commit | 9de6c45dd3019c7074dc34954e008633409b38df (patch) | |
tree | 24339e065faab86e8d1bda60d9cff01f181345ee /src/arch/arm32/Makefile | |
parent | 8f59911b201a89b99a2b0c8930b505cc3820b423 (diff) | |
download | ipxe-9de6c45dd3019c7074dc34954e008633409b38df.tar.gz |
[arm] Use -fno-short-enums for all 32-bit ARM builds
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>
Diffstat (limited to 'src/arch/arm32/Makefile')
-rw-r--r-- | src/arch/arm32/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/arm32/Makefile b/src/arch/arm32/Makefile index 3a7c09230..d32ab6a40 100644 --- a/src/arch/arm32/Makefile +++ b/src/arch/arm32/Makefile @@ -13,6 +13,11 @@ ASFLAGS += -mthumb -mcpu=cortex-a15 # 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 |