diff options
-rw-r--r-- | tools/testing/selftests/bpf/.gitignore | 1 | ||||
-rw-r--r-- | tools/testing/selftests/bpf/Makefile | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore index 1e09d77f1948..cc15af2e54fe 100644 --- a/tools/testing/selftests/bpf/.gitignore +++ b/tools/testing/selftests/bpf/.gitignore | |||
@@ -8,5 +8,6 @@ fixdep | |||
8 | test_align | 8 | test_align |
9 | test_dev_cgroup | 9 | test_dev_cgroup |
10 | test_progs | 10 | test_progs |
11 | test_tcpbpf_user | ||
11 | test_verifier_log | 12 | test_verifier_log |
12 | feature | 13 | feature |
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index bf05bc5e36e5..566d6adc172a 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile | |||
@@ -27,7 +27,7 @@ TEST_PROGS := test_kmod.sh test_xdp_redirect.sh test_xdp_meta.sh \ | |||
27 | 27 | ||
28 | include ../lib.mk | 28 | include ../lib.mk |
29 | 29 | ||
30 | BPFOBJ := $(OUTPUT)/libbpf.a $(OUTPUT)/cgroup_helpers.c | 30 | BPFOBJ := $(OUTPUT)/libbpf.a cgroup_helpers.c |
31 | 31 | ||
32 | $(TEST_GEN_PROGS): $(BPFOBJ) | 32 | $(TEST_GEN_PROGS): $(BPFOBJ) |
33 | 33 | ||
@@ -58,7 +58,7 @@ CLANG_FLAGS = -I. -I./include/uapi -I../../../include/uapi \ | |||
58 | $(OUTPUT)/test_l4lb_noinline.o: CLANG_FLAGS += -fno-inline | 58 | $(OUTPUT)/test_l4lb_noinline.o: CLANG_FLAGS += -fno-inline |
59 | $(OUTPUT)/test_xdp_noinline.o: CLANG_FLAGS += -fno-inline | 59 | $(OUTPUT)/test_xdp_noinline.o: CLANG_FLAGS += -fno-inline |
60 | 60 | ||
61 | %.o: %.c | 61 | $(OUTPUT)/%.o: %.c |
62 | $(CLANG) $(CLANG_FLAGS) \ | 62 | $(CLANG) $(CLANG_FLAGS) \ |
63 | -O2 -target bpf -emit-llvm -c $< -o - | \ | 63 | -O2 -target bpf -emit-llvm -c $< -o - | \ |
64 | $(LLC) -march=bpf -mcpu=$(CPU) -filetype=obj -o $@ | 64 | $(LLC) -march=bpf -mcpu=$(CPU) -filetype=obj -o $@ |