projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09fedc7
)
selftests/bpf: Enable test test_progs-cpuv4 for gcc build kernel
author
Yonghong Song
<yonghong.song@linux.dev>
Fri, 28 Jul 2023 05:57:45 +0000
(22:57 -0700)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 28 Jul 2023 15:54:05 +0000
(08:54 -0700)
Currently, test_progs-cpuv4 is generated with clang build kernel
when bpf cpu=v4 is supported by the clang compiler.
Let us enable test_progs-cpuv4 for gcc build kernel as well.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link:
https://lore.kernel.org/r/20230728055745.2285202-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/Makefile
b/tools/testing/selftests/bpf/Makefile
index
6a45719
..
73a6ca8
100644
(file)
--- a/
tools/testing/selftests/bpf/Makefile
+++ b/
tools/testing/selftests/bpf/Makefile
@@
-36,11
+36,12
@@
LDLIBS += -lelf -lz -lrt -lpthread
ifneq ($(LLVM),)
# Silence some warnings when compiled with clang
CFLAGS += -Wno-unused-command-line-argument
-# Check whether cpu=v4 is supported or not by clang
+endif
+
+# Check whether bpf cpu=v4 is supported or not by clang
ifneq ($(shell $(CLANG) --target=bpf -mcpu=help 2>&1 | grep 'v4'),)
CLANG_CPUV4 := 1
endif
-endif
# Order correspond to 'make run_tests' order
TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \