summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-05 23:01:33 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-05 23:01:33 +0000
commit0b972ac92efa281a92d2c774008c23e38373b413 (patch)
tree51bbbca0ac650b8a0f5465e9c5861a9d9eb9db99 /gnu
parentb1bad39103f190d5fb8bc8f41f38f43e7787519a (diff)
downloadsrc-test2-0b972ac92efa281a92d2c774008c23e38373b413.tar.gz
src-test2-0b972ac92efa281a92d2c774008c23e38373b413.zip
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/as/Makefile5
-rw-r--r--gnu/usr.bin/cc/Makefile.inc5
2 files changed, 8 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile
index c058727069e7..85085d36ab3e 100644
--- a/gnu/usr.bin/binutils/as/Makefile
+++ b/gnu/usr.bin/binutils/as/Makefile
@@ -46,9 +46,12 @@ SRCS+= app.c \
# DEO: why not used?
#SRCS+= itbl-ops.c
-.if ${TARGET_ARCH} == "armv6" || ${TARGET_ARCH} == "armv6eb"
+.if ${TARGET_ARCH:Marmv6*} != ""
CFLAGS+= -DCPU_DEFAULT=ARM_ARCH_V6K
.endif
+.if ${TARGET_ARCH:Marmv7*} != ""
+CFLAGS+= -DCPU_DEFAULT=ARM_ARCH_V7A
+.endif
.if ${TARGET_CPUARCH} == "mips"
SRCS+= itbl-ops.c itbl-parse.y itbl-lex.l
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index b3044df7f68c..7e196965ddbf 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -34,9 +34,12 @@ CFLAGS+= -DTARGET_ARM_EABI
.if ${TARGET_ARCH:Marm*eb} != ""
CFLAGS += -DTARGET_ENDIAN_DEFAULT=MASK_BIG_END
.endif
-.if ${TARGET_ARCH} == "armv6" || ${TARGET_ARCH} == "armv6eb"
+.if ${TARGET_ARCH:Marmv6*} != ""
CFLAGS += -DFREEBSD_ARCH_armv6
.endif
+.if ${TARGET_ARCH:Marmv7*} != ""
+CFLAGS += -DFREEBSD_ARCH_armv7
+.endif
.if ${TARGET_CPUARCH} == "mips"
.if ${TARGET_ARCH:Mmips*el*} != ""