]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests/bpf: Copy test_kmods when installing selftest
authorAmery Hung <ameryhung@gmail.com>
Tue, 12 Aug 2025 17:50:39 +0000 (10:50 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 13 Aug 2025 22:53:01 +0000 (15:53 -0700)
Commit d6212d82bf26 ("selftests/bpf: Consolidate kernel modules into
common directory") consolidated the Makefile of test_kmods. However,
since it removed test_kmods from TEST_GEN_PROGS_EXTENDED, the kernel
modules required by bpf selftests are now missing from kselftest_install
when "make install". Fix it by adding test_kmod to TEST_GEN_FILES.

Fixes: d6212d82bf26 ("selftests/bpf: Consolidate kernel modules into common directory")
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250812175039.2323570-1-ameryhung@gmail.com
tools/testing/selftests/bpf/Makefile

index 4863106034dfbcd35f830432322f054d897bb406..77794efc020ea65a87aceb50f55725a0f6283050 100644 (file)
@@ -137,7 +137,7 @@ TEST_GEN_PROGS_EXTENDED = \
        xdping \
        xskxceiver
 
-TEST_GEN_FILES += liburandom_read.so urandom_read sign-file uprobe_multi
+TEST_GEN_FILES += $(TEST_KMODS) liburandom_read.so urandom_read sign-file uprobe_multi
 
 ifneq ($(V),1)
 submake_extras := feature_display=0