kernel-selftest: add libcap to build and runtime dependencies

libcap is needed unconditionally for capability-aware tests such as
breakpoints, cgroup, clone3, futex, ptrace, and seccomp.  Add it to
DEPENDS so it is always available at build time and to RDEPENDS so the
installed tests can call cap_get_proc() and friends at runtime.

bash and libgcc are also added to RDEPENDS: bash is required by several
test shell scripts, and libgcc provides libgcc_s.so needed by tests
that use GCC-emitted unwinding stubs.

Signed-off-by: Telukula Jeevan Kumar Sahu <j-sahu@ti.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Telukula Jeevan Kumar Sahu
2026-06-04 18:09:06 +05:30
committed by Khem Raj
parent e14f72c5d7
commit 447405d1ff
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
DEPENDS = "rsync-native llvm-native"
DEPENDS = "rsync-native llvm-native libcap"
S = "${UNPACKDIR}"
@@ -161,7 +161,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
FILES:${PN} += "/usr/kernel-selftest"
RDEPENDS:${PN} += "python3 perl perl-module-io-handle"
RDEPENDS:${PN} += "python3 perl perl-module-io-handle bash libcap libgcc"
INSANE_SKIP:${PN} += "libdir"