Module Name: src Committed By: jmcneill Date: Sun Dec 1 20:24:47 UTC 2019
Modified Files: src/share/mk: bsd.kmodule.mk Log Message: Build aarch64 modules without fp or simd instructions. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 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.63 --- src/share/mk/bsd.kmodule.mk:1.62 Fri Jul 5 08:28:16 2019 +++ src/share/mk/bsd.kmodule.mk Sun Dec 1 20:24:47 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.63 2019/12/01 20:24:47 jmcneill 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