aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2020-09-14 16:12:28 +0000
committerAndrew Turner <andrew@FreeBSD.org>2020-09-14 16:12:28 +0000
commit2a6803de1cdbc7e34dfe4dc185a2dd98b9a787fb (patch)
treef6626469ce3b843e7fcac56715d1f7347aa60bae /tests
parent5fb8eca8700bbf0047c8d9a4472eb71dca8f6d0c (diff)
downloadsrc-2a6803de1cdbc7e34dfe4dc185a2dd98b9a787fb.tar.gz
src-2a6803de1cdbc7e34dfe4dc185a2dd98b9a787fb.zip
Use MACHINE_CPUARCH when checking for arm64
Use MACHINE_CPUARCH with arm64 (aarch64) when we build code that could run on any 64-bit Arm instruction set. This will simplify checks in downstream consumers targeting prototype instruction sets. The only place we check for MACHINE_ARCH == aarch64 is when building the device tree blobs. As these are targeting current generation ISAs. Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D26370
Notes
Notes: svn path=/head/; revision=365726
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile
index c73699266178..ed33bc52ecd1 100644
--- a/tests/sys/kern/Makefile
+++ b/tests/sys/kern/Makefile
@@ -57,7 +57,7 @@ LIBADD.mqueue_test+= rt
.if ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "i386" || \
- ${MACHINE_ARCH} == "aarch64"
+ ${MACHINE_CPUARCH} == "aarch64"
ATF_TESTS_C+= libkern_crc32
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
LDADD.libkern_crc32+= ${SRCTOP}/sys/libkern/x86/crc32_sse42.c