[OE-core] [PATCH 1/1] kmod: fix debuginfo is missing in shared library

Tudor Florea Tudor.Florea at enea.com
Thu Oct 23 17:02:44 UTC 2014


Hi,

From: openembedded-core-bounces at lists.openembedded.org [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of Burton, Ross
Sent: Thursday, October 23, 2014 17:21
To: Chong Lu
Cc: OE-core
Subject: Re: [OE-core] [PATCH 1/1] kmod: fix debuginfo is missing in shared library


On 21 October 2014 09:16, Chong Lu <Chong.Lu at windriver.com<mailto:Chong.Lu at windriver.com>> wrote:
-INHIBIT_PACKAGE_STRIP = "${@bb.utils.contains(<mailto:$%7b at bb.utils.contains(>"DISTRO_FEATURES", "ptest", "1", "0", d)}"
+INHIBIT_PACKAGE_STRIP_${PN}-ptest = "${@bb.utils.contains(<mailto:$%7b at bb.utils.contains(>"DISTRO_FEATURES", "ptest", "1", "0", d)}"

Was this actually tested?

ERROR: runstrip: ''arm-poky-linux-gnueabi-strip' --strip-debug --remove-section=.comment --remove-section=.note --preserve-dates '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/work/armv5te-poky-linux-gnueabi/kmod/18+gitAUTOINC+ae58de0fcb-r0/package/usr/lib/kmod/ptest/testsuite/rootfs/test-depmod/detect-loop/lib/modules/4.4.4/kernel/moduleA.ko'' strip command failed

INHIBIT_PACKAGE_STRIP isn't a per-package variable as stripping happens before the package-splitting.   Moving it to happen after splitting won't be trivial as you'd need to know what package to put the resultant files into.  Maybe we need a strip blacklist?

Ross

One way to solve this is to pack the ptest “sample” files during install (in do_install_append) and unpack back when running ptest on target (in run-ptest). The downside of this is we add a dependency on tar.
Please let me know if it is acceptable and I’ll come with a patch for this.
Regards,
Tudor.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20141023/72ae7391/attachment-0002.html>


More information about the Openembedded-core mailing list