Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Björn Töpel and committed by
Daniel Borkmann
b390d698 4b54214f

+2 -1
+2 -1
tools/scripts/Makefile.arch
··· 4 4 -e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \ 5 5 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 6 6 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 7 - -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ ) 7 + -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ 8 + -e s/riscv.*/riscv/) 8 9 9 10 ifndef ARCH 10 11 ARCH := $(HOSTARCH)