aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-11-21 19:23:12 +0000
committerWarner Losh <imp@FreeBSD.org>2017-11-21 19:23:12 +0000
commit573a3ef083d5646f9b896e07d24c70404a1bee8e (patch)
treeec808dcf37a50fe8e2a2162f3dca70b035f9489a /Makefile
parent7bcc2cfc86b51d4b2df8177a3af0a695433631f4 (diff)
downloadsrc-573a3ef083d5646f9b896e07d24c70404a1bee8e.tar.gz
src-573a3ef083d5646f9b896e07d24c70404a1bee8e.zip
Use TARGET_ARCH=riscv64 when TARGET=riscv
The supported targets are riscv64 and riscv64sf. Use the former when building with a bare TARGET=riscv and it is the more common one. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=326071
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec55add8ef8f..4e8514db785b 100644
--- a/Makefile
+++ b/Makefile
@@ -270,7 +270,7 @@ MK_META_MODE= no
# exceptions.
.if !defined(TARGET_ARCH) && defined(TARGET)
# T->TA mapping is usually TARGET with arm64 the odd man out
-_TARGET_ARCH= ${TARGET:S/arm64/aarch64/}
+_TARGET_ARCH= ${TARGET:S/arm64/aarch64/:S/riscv/riscv64/}
.elif !defined(TARGET) && defined(TARGET_ARCH) && \
${TARGET_ARCH} != ${MACHINE_ARCH}
# TA->T mapping is accidentally CPUARCH with aarch64 the odd man out