Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add placeholder for compiing earmv7* with -mthumb.



details:   https://anonhg.NetBSD.org/src/rev/1efbc0f13a5b
branches:  trunk
changeset: 816473:1efbc0f13a5b
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jul 07 20:52:53 2016 +0000

description:
Add placeholder for compiing earmv7* with -mthumb.
Preserve $d/$a/$t for all ARM binaries regardless of endian.

diffstat:

 share/mk/bsd.sys.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 5f3f6ca809f4 -r 1efbc0f13a5b share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Thu Jul 07 15:27:42 2016 +0000
+++ b/share/mk/bsd.sys.mk       Thu Jul 07 20:52:53 2016 +0000
@@ -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 @@
 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 @@
 .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



Home | Main Index | Thread Index | Old Index