summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-02-13 21:26:45 +0000
committerian <ian@FreeBSD.org>2015-02-13 21:26:45 +0000
commitee9ba339b2e685c5f3ed29350f69d7dc13d280cc (patch)
treed02258cc07b519077da68ea206e8e6f059807a9d
parent3bd87ad25c4b77bb7075f58ef84e663f66bd6aae (diff)
downloadFreeBSD-src-ee9ba339b2e685c5f3ed29350f69d7dc13d280cc.zip
FreeBSD-src-ee9ba339b2e685c5f3ed29350f69d7dc13d280cc.tar.gz
MFC r272605: Use -mfpu=none when building arm kernels.
-rw-r--r--sys/conf/Makefile.arm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm
index ce029f6..417db1c 100644
--- a/sys/conf/Makefile.arm
+++ b/sys/conf/Makefile.arm
@@ -41,6 +41,9 @@ STRIP_FLAGS = -S
.if ${COMPILER_TYPE} != "clang"
CFLAGS += -mno-thumb-interwork
+.else
+# We generally don't want fpu instructions in the kernel.
+CFLAGS += -mfpu=none
.endif
.if empty(DDB_ENABLED)
OpenPOWER on IntegriCloud