56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
# kernel-selftest misses some dependencies for some of the tests
|
|
# We add them here
|
|
RDEPENDS:${PN} += " \
|
|
perl-module-io \
|
|
perl-module-io-handle \
|
|
perl-module-io-seekable \
|
|
util-linux \
|
|
gcc-sanitizers \
|
|
fuse \
|
|
jq \
|
|
iputils \
|
|
iproute2 \
|
|
iproute2-tc \
|
|
iproute2-nstat \
|
|
iproute2-ss \
|
|
coreutils \
|
|
"
|
|
# kernel-module-gpio-mockup \
|
|
# "
|
|
|
|
DEPENDS += " \
|
|
util-linux \
|
|
gcc-sanitizers \
|
|
fuse \
|
|
numactl \
|
|
"
|
|
|
|
INSANE_SKIP:${PN} = "already-stripped"
|
|
|
|
TEST_LIST += "net net/forwarding net/mptcp lkdtm"
|
|
|
|
# Replace compile and install to make all tests
|
|
|
|
# do_compile() {
|
|
# if [ ${@bb.utils.contains('PACKAGECONFIG', 'bpf', 'True', 'False', d)} = 'True' ]; then
|
|
# if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then
|
|
# bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so
|
|
# either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency"
|
|
# fi
|
|
# fi
|
|
# oe_runmake -C ${S}/tools/testing/selftests all
|
|
# }
|
|
#
|
|
# do_install() {
|
|
# oe_runmake -C ${S}/tools/testing/selftests INSTALL_PATH=${D}/usr/kernel-selftest install
|
|
# # Install kselftest-list.txt that required by kselftest runner.
|
|
# #oe_runmake -s --no-print-directory COLLECTION=${i} -C ${S}/tools/testing/selftests emit_tests \
|
|
# # >> ${D}/usr/kernel-selftest/kselftest-list.txt
|
|
# # Install kselftest runner.
|
|
# install -m 0755 ${S}/tools/testing/selftests/run_kselftest.sh ${D}/usr/kernel-selftest/
|
|
# cp -R --no-dereference --preserve=mode,links -v ${S}/tools/testing/selftests/kselftest ${D}/usr/kernel-selftest/
|
|
# if [ -e ${D}/usr/kernel-selftest/bpf/test_offload.py ]; then
|
|
# sed -i -e '1s,#!.*python3,#! /usr/bin/env python3,' ${D}/usr/kernel-selftest/bpf/test_offload.py
|
|
# fi
|
|
# chown root:root -R ${D}/usr/kernel-selftest
|
|
# } |