summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.cpu.mk
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-07-02 13:42:57 +0000
committerandrew <andrew@FreeBSD.org>2015-07-02 13:42:57 +0000
commit15ffa4b50a625e2060688a35b3de803af0b4a770 (patch)
treea17288c3250e4c04f2a91ad3006d0116ed0134f4 /share/mk/bsd.cpu.mk
parent88710d2d36f7f19c317afcb077bb9ecaf5522bda (diff)
downloadFreeBSD-src-15ffa4b50a625e2060688a35b3de803af0b4a770.zip
FreeBSD-src-15ffa4b50a625e2060688a35b3de803af0b4a770.tar.gz
Set MACHINE_CPU to arm64 when building for arm64. This is needed by the
ports tree as they check this value in a number of ports. PR: 201259 Sponsored by: ABT Systems Ltd
Diffstat (limited to 'share/mk/bsd.cpu.mk')
-rw-r--r--share/mk/bsd.cpu.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 012756f..6ba87cc 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -6,7 +6,9 @@
.if !defined(CPUTYPE) || empty(CPUTYPE)
_CPUCFLAGS =
-. if ${MACHINE_CPUARCH} == "amd64"
+. if ${MACHINE_CPUARCH} == "aarch64"
+MACHINE_CPU = arm64
+. elif ${MACHINE_CPUARCH} == "amd64"
MACHINE_CPU = amd64 sse2 sse mmx
. elif ${MACHINE_CPUARCH} == "arm"
MACHINE_CPU = arm
OpenPOWER on IntegriCloud