mirror of
https://github.com/ipxe/ipxe
synced 2026-03-16 03:02:07 +03:00
The EFI ABI requires the use of -mfloat-abi=soft, but other platforms may require -mfloat-abi=hard. Allow for this by using -mfloat-abi=soft only for EFI builds. Signed-off-by: Michael Brown <mcb30@ipxe.org>
29 lines
675 B
Makefile
29 lines
675 B
Makefile
# ARM32-specific directories containing source files
|
|
#
|
|
SRCDIRS += arch/arm32/core
|
|
SRCDIRS += arch/arm32/libgcc
|
|
|
|
# ARM32-specific flags
|
|
#
|
|
CFLAGS += -mthumb -mcpu=cortex-a15 -mabi=aapcs
|
|
CFLAGS += -mword-relocations
|
|
ASFLAGS += -mthumb -mcpu=cortex-a15
|
|
|
|
# EFI requires -fshort-wchar, and nothing else currently uses wchar_t
|
|
#
|
|
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
|
|
|
|
# Include platform-specific Makefile
|
|
#
|
|
MAKEDEPS += arch/arm32/Makefile.$(PLATFORM)
|
|
include arch/arm32/Makefile.$(PLATFORM)
|