Skip to content

Commit 2bef6fc

Browse files
committed
bpf: fix path to vmlinux.h
It was using LIBBPFGO_DIR instead of LIBBPF_OUTPUT
1 parent 997aa73 commit 2bef6fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ $(LIBBPFGO_DIR): always-check
7777
echo "INFO: updating submodule 'libbpfgo'"
7878
$(GIT) submodule update --init --recursive $@
7979

80-
$(LIBBPFGO_DIR)/vmlinux.h: $(LIBBFGO_DIR)
80+
$(LIBBPF_OUTPUT)/vmlinux.h: $(LIBBFGO_DIR)
8181
mkdir -p $(LIBBPF_OUTPUT)
82-
$(BPFTOOL) btf dump file /sys/kernel/btf/vmlinux format c > ./third_party/libbpfgo/output/vmlinux.h
82+
$(BPFTOOL) btf dump file /sys/kernel/btf/vmlinux format c > $@
8383

84-
$(LIBBPF_LIB): $(LIBBPFGO_DIR) $(LIBBPFGO_DIR)/vmlinux.h
84+
$(LIBBPF_LIB): $(LIBBPFGO_DIR) $(LIBBPF_OUTPUT)/vmlinux.h
8585
make -C $(LIBBPFGO_DIR) libbpfgo-static
8686

8787
%.bpf.o: %.bpf.c $(LIBBPF_LIB)

0 commit comments

Comments
 (0)