Module Name: src
Committed By: matt
Date: Thu Jul 7 20:52:53 UTC 2016
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
Add placeholder for compiing earmv7* with -mthumb.
Preserve $d/$a/$t for all ARM binaries regardless of endian.
To generate a diff of this commit:
cvs rdiff -u -r1.259 -r1.260 src/share/mk/bsd.sys.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.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.259 src/share/mk/bsd.sys.mk:1.260
--- src/share/mk/bsd.sys.mk:1.259 Tue Jun 14 13:26:45 2016
+++ src/share/mk/bsd.sys.mk Thu Jul 7 20:52:53 2016
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.259 2016/06/14 13:26:45 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.260 2016/07/07 20:52:53 matt Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -159,6 +159,11 @@ COPTS+= -mhard-float
FOPTS+= -mhard-float
.endif
+#.if !empty(MACHINE_ARCH:Mearmv7*)
+#COPTS+= -mthumb
+#FOPTS+= -mthumb
+#.endif
+
.if ${MKIEEEFP:Uno} != "no"
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -mieee
@@ -289,7 +294,7 @@ YFLAGS+= ${YPREFIX:D-p${YPREFIX}} ${YHEA
.if ${MACHINE_ARCH} == aarch64eb
# AARCH64 big endian needs to preserve $x/$d symbols for the linker.
OBJCOPYLIBFLAGS_EXTRA=-w -K '[$$][dx]' -K '[$$][dx]\.*'
-.elif !empty(MACHINE_ARCH:M*arm*eb)
+.elif ${MACHINE_CPU} == "arm"
# ARM big endian needs to preserve $a/$d/$t symbols for the linker.
OBJCOPYLIBFLAGS_EXTRA=-w -K '[$$][adt]' -K '[$$][adt]\.*'
.endif