diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2021-01-13 17:33:17 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-01-13 19:05:39 -0800 |
commit | 5837cedef6f33e01d1c4ad90ee4e966bcc6f9c30 (patch) | |
tree | 739b0a3b5d39748c9382a81542a3abafb5bc4255 /tools | |
parent | de11ae4f56fdc53474c08b03142860428e6c5655 (diff) | |
download | linux-5837cedef6f33e01d1c4ad90ee4e966bcc6f9c30.tar.gz linux-5837cedef6f33e01d1c4ad90ee4e966bcc6f9c30.tar.bz2 linux-5837cedef6f33e01d1c4ad90ee4e966bcc6f9c30.zip |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/bpf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 95ce81513648..92888eed89f3 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -25,7 +25,7 @@ BPF_GCC ?= $(shell command -v bpf-gcc;) SAN_CFLAGS ?= CFLAGS += -g -rdynamic -Wall -O2 $(GENFLAGS) $(SAN_CFLAGS) \ -I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \ - -I$(TOOLSINCDIR) -I$(APIDIR) \ + -I$(TOOLSINCDIR) -I$(APIDIR) -I$(OUTPUT) \ -Dbpf_prog_load=bpf_prog_test_load \ -Dbpf_load_program=bpf_test_load_program LDLIBS += -lcap -lelf -lz -lrt -lpthread |