Skip to content

Commit

Permalink
libbpf-tools: Add RISC-V support
Browse files Browse the repository at this point in the history
Add minimal support for RISC-V.

Signed-off-by: Hengqi Chen <[email protected]>
  • Loading branch information
chenhengqi committed Jul 11, 2022
1 parent 6409ff8 commit a7fb5d6
Show file tree
Hide file tree
Showing 3 changed files with 106,276 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libbpf-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CFLAGS := -g -O2 -Wall
BPFCFLAGS := -g -O2 -Wall
INSTALL ?= install
prefix ?= /usr/local
ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' | sed 's/ppc64le/powerpc/' | sed 's/mips.*/mips/')
ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' | sed 's/ppc64le/powerpc/' | sed 's/mips.*/mips/' | sed 's/riscv64/riscv/')
BTFHUB_ARCHIVE ?= $(abspath btfhub-archive)

ifeq ($(wildcard $(ARCH)/),)
Expand Down
1 change: 1 addition & 0 deletions libbpf-tools/riscv/vmlinux.h
Loading

0 comments on commit a7fb5d6

Please sign in to comment.