From: Björn Töpel Date: Thu, 28 Oct 2021 16:10:55 +0000 (+0200) Subject: tools, build: Add RISC-V to HOSTARCH parsing X-Git-Tag: v5.16-rc1~159^2~2^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b390d69831ee30e10a4ef410bee157e73b149036;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Daniel Borkmann Link: https://lore.kernel.org/bpf/20211028161057.520552-3-bjorn@kernel.org --- diff --git a/tools/scripts/Makefile.arch b/tools/scripts/Makefile.arch index b10b7a27c33fd..0c6c7f4568878 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)