summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-05-11 11:59:00 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-05-11 11:59:00 +0000
commita5394d9445c47cad29d736d03b6285ec1f3b3ad3 (patch)
treed801442bfa44ced40841381163a9fb2f798b22f4 /sys/arch
parentb8c0210147bb97c2a76e4697f97c244aef4e9ec6 (diff)
Compile the EFI bootloader with -mfloat-abi=soft to prevent the compiler from
using FPU instructions. Makes the bootloader work again after we switched clang to use -mfloat-abi=softfp by default. ok jsg@, patrick@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/armv7/stand/efiboot/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/armv7/stand/efiboot/Makefile b/sys/arch/armv7/stand/efiboot/Makefile
index 8e7fd60f062..852a5f5fc22 100644
--- a/sys/arch/armv7/stand/efiboot/Makefile
+++ b/sys/arch/armv7/stand/efiboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.9 2018/03/31 18:19:12 patrick Exp $
+# $OpenBSD: Makefile,v 1.10 2018/05/11 11:58:59 kettenis Exp $
NOMAN= #
@@ -48,6 +48,7 @@ CPPFLAGS+= -DNEEDS_HEAP_H
COPTS+= -ffreestanding -fno-stack-protector
COPTS+= -fshort-wchar -fPIC -fno-builtin
COPTS+= -Wall -Werror
+COPTS+= -mfloat-abi=soft
PROG.elf= ${PROG:S/.EFI/.elf/}
CLEANFILES+= ${PROG.elf} ${PROG.elf}.tmp