summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn@kernel.org>2021-10-28 18:10:55 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2021-11-01 17:08:21 +0100
commitb390d69831ee30e10a4ef410bee157e73b149036 (patch)
tree8533c3c2fabe73a45aea6e6c2d4934d910dad7b4
parent4b54214f39ff24a7e9b7231ae9c05d1c2c424280 (diff)
downloadlinux-b390d69831ee30e10a4ef410bee157e73b149036.tar.gz
linux-b390d69831ee30e10a4ef410bee157e73b149036.tar.bz2
linux-b390d69831ee30e10a4ef410bee157e73b149036.zip
tools, build: Add RISC-V to HOSTARCH parsing
Add RISC-V to the HOSTARCH parsing, so that ARCH is "riscv", and not "riscv32" or "riscv64". This affects the perf and libbpf builds, so that arch specific includes are correctly picked up for RISC-V. Signed-off-by: Björn Töpel <bjorn@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20211028161057.520552-3-bjorn@kernel.org
-rw-r--r--tools/scripts/Makefile.arch3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/scripts/Makefile.arch b/tools/scripts/Makefile.arch
index b10b7a27c33f..0c6c7f456887 100644
--- a/tools/scripts/Makefile.arch
+++ b/tools/scripts/Makefile.arch
@@ -4,7 +4,8 @@ HOSTARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
-e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \
-e s/s390x/s390/ -e s/parisc64/parisc/ \
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
- -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ )
+ -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \
+ -e s/riscv.*/riscv/)
ifndef ARCH
ARCH := $(HOSTARCH)