Module Name: src
Committed By: martin
Date: Sun Dec 8 14:36:21 UTC 2019
Modified Files:
src/share/mk [netbsd-9]: bsd.kmodule.mk
Log Message:
Pull up following revision(s) (requested by jmcneill in ticket #512):
share/mk/bsd.kmodule.mk: revision 1.63
Build aarch64 modules without fp or simd instructions.
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.62.2.1 src/share/mk/bsd.kmodule.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.kmodule.mk
diff -u src/share/mk/bsd.kmodule.mk:1.62 src/share/mk/bsd.kmodule.mk:1.62.2.1
--- src/share/mk/bsd.kmodule.mk:1.62 Fri Jul 5 08:28:16 2019
+++ src/share/mk/bsd.kmodule.mk Sun Dec 8 14:36:21 2019
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmodule.mk,v 1.62 2019/07/05 08:28:16 hannken Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.62.2.1 2019/12/08 14:36:21 martin Exp $
# We are not building this with PIE
MKPIE=no
@@ -42,7 +42,9 @@ CFLAGS+= -fno-strict-aliasing -Wno-point
# The real solution to this involves generating trampolines for those
# relocations inside the loader and removing this workaround, as the
# resulting code would be much faster.
-.if ${MACHINE_CPU} == "arm"
+.if ${MACHINE_CPU} == "aarch64"
+CFLAGS+= -march=armv8-a+nofp+nosimd
+.elif ${MACHINE_CPU} == "arm"
CFLAGS+= -fno-common -fno-unwind-tables
.elif ${MACHINE_CPU} == "hppa"
CFLAGS+= -mlong-calls