INHIBIT_PACKAGE_STRIP variable will make debuginfo lose in shared library. Pack kernel modules in test cases to avoid strip command failed.
Signed-off-by: Chong Lu <chong...@windriver.com> --- meta/recipes-kernel/kmod/kmod/run-ptest | 1 + meta/recipes-kernel/kmod/kmod_git.bb | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/kmod/kmod/run-ptest b/meta/recipes-kernel/kmod/kmod/run-ptest index 37adec3..4ed8715 100755 --- a/meta/recipes-kernel/kmod/kmod/run-ptest +++ b/meta/recipes-kernel/kmod/kmod/run-ptest @@ -1,3 +1,4 @@ #!/bin/sh touch testsuite/stamp-rootfs +tar xf testmodule.tar make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb index d4c21a4..8a23ac4 100644 --- a/meta/recipes-kernel/kmod/kmod_git.bb +++ b/meta/recipes-kernel/kmod/kmod_git.bb @@ -34,6 +34,10 @@ do_install_append () { # install depmod.d file for search/ dir install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${base_libdir}/depmod.d/search.conf" + if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then + find testsuite -name \*.ko -exec tar rf testmodule.tar {} \; + find testsuite -name \*.ko -exec rm -f {} \; + fi } do_compile_prepend() { @@ -44,7 +48,10 @@ do_compile_ptest () { oe_runmake buildtest-TESTS rootfs } -INHIBIT_PACKAGE_STRIP = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", "1", "0", d)}" +do_install_ptest () { + install testmodule.tar ${D}${PTEST_PATH} +} + INSANE_SKIP_${PN}-ptest = "arch" inherit update-alternatives -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core