aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testing/selftests/bpf/.gitignore1
-rw-r--r--tools/testing/selftests/bpf/Makefile4
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
8test_align 8test_align
9test_dev_cgroup 9test_dev_cgroup
10test_progs 10test_progs
11test_tcpbpf_user
11test_verifier_log 12test_verifier_log
12feature 13feature
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
28include ../lib.mk 28include ../lib.mk
29 29
30BPFOBJ := $(OUTPUT)/libbpf.a $(OUTPUT)/cgroup_helpers.c 30BPFOBJ := $(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 $@