aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-01-23 01:32:14 +0000
committerMichael Brown <mcb30@ipxe.org>2023-01-23 01:32:14 +0000
commitc5e1f007ac33fc09943ba99b742f599a0cfca0c5 (patch)
tree5ed6dfdeeb009a2abb4ae6734c3ab34b407ea3d9
parent9de6c45dd3019c7074dc34954e008633409b38df (diff)
downloadipxe-c5e1f007ac33fc09943ba99b742f599a0cfca0c5.zip
ipxe-c5e1f007ac33fc09943ba99b742f599a0cfca0c5.tar.gz
ipxe-c5e1f007ac33fc09943ba99b742f599a0cfca0c5.tar.bz2
[arm] Use -mfloat-abi=soft only for EFI builds
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>
-rw-r--r--src/arch/arm32/Makefile2
-rw-r--r--src/arch/arm32/Makefile.efi4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/arm32/Makefile b/src/arch/arm32/Makefile
index d32ab6a..0c1cf99 100644
--- a/src/arch/arm32/Makefile
+++ b/src/arch/arm32/Makefile
@@ -5,7 +5,7 @@ SRCDIRS += arch/arm32/libgcc
# ARM32-specific flags
#
-CFLAGS += -mthumb -mcpu=cortex-a15 -mabi=aapcs -mfloat-abi=soft
+CFLAGS += -mthumb -mcpu=cortex-a15 -mabi=aapcs
CFLAGS += -mword-relocations
ASFLAGS += -mthumb -mcpu=cortex-a15
diff --git a/src/arch/arm32/Makefile.efi b/src/arch/arm32/Makefile.efi
index a06354f..d720f34 100644
--- a/src/arch/arm32/Makefile.efi
+++ b/src/arch/arm32/Makefile.efi
@@ -1,5 +1,9 @@
# -*- makefile -*- : Force emacs to use Makefile mode
+# EFI uses the soft float ABI
+#
+CFLAGS += -mfloat-abi=soft
+
# Specify EFI image builder
#
ELF2EFI = $(ELF2EFI32)