diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-10-27 13:24:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-04 10:27:11 +0000 |
commit | 9adfa08360297670489304213debad514ad17f92 (patch) | |
tree | ac87320d5271c71db99d8b6b40a090cf78a9f4d9 /meta/recipes-kernel/kmod | |
parent | 028a39431e466299975570cb0bf9e304f769bb20 (diff) | |
download | poky-9adfa08360297670489304213debad514ad17f92.tar.gz |
kmod: fix debuginfo is missing in shared library
INHIBIT_PACKAGE_STRIP variable will make debuginfo lose in shared library.
The test cases of kmod contain kernel modules for many different architectures,
strip and arch gets confused and throws errors. Pack kernel modules in test
cases to avoid strip command failed.
(From OE-Core rev: 3576399ed163cb3136ee1a2077622035d2033158)
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kmod')
-rwxr-xr-x | meta/recipes-kernel/kmod/kmod/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-kernel/kmod/kmod_git.bb | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/run-ptest b/meta/recipes-kernel/kmod/kmod/run-ptest index 37adec3d2f..598dd2cb5f 100755 --- a/meta/recipes-kernel/kmod/kmod/run-ptest +++ b/meta/recipes-kernel/kmod/kmod/run-ptest | |||
@@ -1,3 +1,5 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | touch testsuite/stamp-rootfs | 2 | touch testsuite/stamp-rootfs |
3 | tar xf testmodule.tar | ||
3 | make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL | 4 | make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL |
5 | find testsuite -name *.ko -exec rm -f {} \; | ||
diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb index d4c21a4387..08dd81569c 100644 --- a/meta/recipes-kernel/kmod/kmod_git.bb +++ b/meta/recipes-kernel/kmod/kmod_git.bb | |||
@@ -34,6 +34,10 @@ do_install_append () { | |||
34 | # install depmod.d file for search/ dir | 34 | # install depmod.d file for search/ dir |
35 | install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${base_libdir}/depmod.d/search.conf" | 35 | install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${base_libdir}/depmod.d/search.conf" |
36 | 36 | ||
37 | if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then | ||
38 | find testsuite -name *.ko -exec tar rf testmodule.tar {} \; | ||
39 | find testsuite -name *.ko -exec rm -f {} \; | ||
40 | fi | ||
37 | } | 41 | } |
38 | 42 | ||
39 | do_compile_prepend() { | 43 | do_compile_prepend() { |
@@ -44,7 +48,10 @@ do_compile_ptest () { | |||
44 | oe_runmake buildtest-TESTS rootfs | 48 | oe_runmake buildtest-TESTS rootfs |
45 | } | 49 | } |
46 | 50 | ||
47 | INHIBIT_PACKAGE_STRIP = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", "1", "0", d)}" | 51 | do_install_ptest () { |
52 | install testmodule.tar ${D}${PTEST_PATH} | ||
53 | } | ||
54 | |||
48 | INSANE_SKIP_${PN}-ptest = "arch" | 55 | INSANE_SKIP_${PN}-ptest = "arch" |
49 | 56 | ||
50 | inherit update-alternatives | 57 | inherit update-alternatives |