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>
19 lines
323 B
Makefile
19 lines
323 B
Makefile
# -*- makefile -*- : Force emacs to use Makefile mode
|
|
|
|
# EFI uses the soft float ABI
|
|
#
|
|
CFLAGS += -mfloat-abi=soft
|
|
|
|
# Specify EFI image builder
|
|
#
|
|
ELF2EFI = $(ELF2EFI32)
|
|
|
|
# Specify EFI boot file
|
|
#
|
|
EFI_BOOT_FILE = bootarm.efi
|
|
|
|
# Include generic EFI Makefile
|
|
#
|
|
MAKEDEPS += arch/arm/Makefile.efi
|
|
include arch/arm/Makefile.efi
|