Skip to content

Commit b390d69

Browse files
Björn Töpelborkmann
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 4b54214 commit b390d69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/scripts/Makefile.arch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ HOSTARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
44
-e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \
55
-e s/s390x/s390/ -e s/parisc64/parisc/ \
66
-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/)
89

910
ifndef ARCH
1011
ARCH := $(HOSTARCH)

0 commit comments

Comments
 (0)