Skip to content

Commit 5837ced

Browse files
jpbruckeranakryiko
authored andcommitted
selftests/bpf: Fix out-of-tree build
When building out-of-tree, the .skel.h files are generated into the $(OUTPUT) directory, rather than $(CURDIR). Add $(OUTPUT) to the include paths. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210113163319.1516382-3-jean-philippe@linaro.org
1 parent de11ae4 commit 5837ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BPF_GCC ?= $(shell command -v bpf-gcc;)
2525
SAN_CFLAGS ?=
2626
CFLAGS += -g -rdynamic -Wall -O2 $(GENFLAGS) $(SAN_CFLAGS) \
2727
-I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \
28-
-I$(TOOLSINCDIR) -I$(APIDIR) \
28+
-I$(TOOLSINCDIR) -I$(APIDIR) -I$(OUTPUT) \
2929
-Dbpf_prog_load=bpf_prog_test_load \
3030
-Dbpf_load_program=bpf_test_load_program
3131
LDLIBS += -lcap -lelf -lz -lrt -lpthread

0 commit comments

Comments
 (0)