From c66374bd648eac6fe6bc98d1cab28e61f488bbc3 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 30 Oct 2026 19:27:42 -0700 Subject: [PATCH] kernel-selftest: Add the modules and tools the tests need Many selftests modprobe what they need (gpio-mockup, netdevsim, vrf, the tc qdiscs, classifiers and actions, ...), but the image only had a couple of kernel modules, so recommend all of them. The net tests also need real iproute2, iputils ping and ping6, ethtool, iperf3, socat, jq, bc and taskset; busybox ip and ping lack most of the options they use, and busybox's ping6 has no -M, which pmtu.sh picks up over ping when it exists. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index 4254eccfd6..b1266fe553 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb @@ -241,6 +241,14 @@ FILES:${PN} += "/usr/kernel-selftest" RDEPENDS:${PN} += "python3 perl perl-module-io-handle bash libcap libgcc coreutils e2fsprogs-mke2fs" # The net python tests load netlink specs with the YNL library. RDEPENDS:${PN} += "python3-pyyaml" +# Tools the net selftests use; busybox ip and ping lack most of the options +# they need. +RDEPENDS:${PN}-ptest += "bc ethtool iperf3 iproute2 iproute2-bridge iproute2-nstat \ + iproute2-ss iproute2-tc iptables iputils-arping iputils-ping iputils-ping6 jq socat \ + util-linux-taskset" +# Many selftests modprobe the modules they need (gpio-mockup, netdevsim, vrf, +# the tc qdiscs, classifiers and actions, ...) and fail without them. +RRECOMMENDS:${PN} += "kernel-modules" INSANE_SKIP:${PN} += "libdir"