On Tue, May 18, 2021 at 10:00 AM Robert P. J. Day <rpj...@crashcourse.ca> wrote:
>   muh colleague just presented me with the following ... until
> recently, build was properly producing bootable image while
> simultaneously creating companion debugfs. so far, so good.
>
>   then enough packages were added so that image didn't fit in target
> eMMC, so decision was made to strip bins and libs in ${D} image/
> directory via sneaking the following into do_install_append():
>
>   ${STRIP} -p --strip-unneeded ${D}${bindir}/*
>   ${STRIP} -p --strip-unneeded ${D}${libdir}/*

Did that actually help with the image size?

> as soon as this kicked in, the complaint was that numerous objects
> were now missing from the debugfs, and i *suspect* (working to
> confirm) that, having stripped all those binaries and libraries before
> the packaging step kicks in, a lot of stuff that would have ended up
> in the debugfs is now bypassed since it lacks the appropriate
> debugging info anymore.

Yes, if you remove debug symbols before packaging then they won't be
available to put in the -dbg packages.

>   i'm looking at the various variables to see what would support:
>
>   1) stripping image-bound bins and libs, while
>   2) retaining debugging info to build debugfs

Isn't that what happens by default?

> a stack overflow page suggests something like:
>
>   INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
>   INHIBIT_PACKAGE_STRIP = "1"
>   DEBUG_BUILD = "1"
>   EXTRA_IMAGE_FEATURES_append = " dbg-pkgs"

This came up on the list a few months ago. Enabling every possible
option somehow related to debug as advised by stack overflow probably
isn't the best approach. You need to decide if you want to have
unstripped binaries in the image (in which case there's no need to
install separate -dbg packages in the image too), if you want stripped
binaries and -dbg packages in the image (in which case there's no
point trying to disable splitting of debug symbols during packaging)
or if you want debug symbols in a separate image / tar file (in which
case you don't need to change packaging or the contents of the main
image at all).
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152037): 
https://lists.openembedded.org/g/openembedded-core/message/152037
Mute This Topic: https://lists.openembedded.org/mt/82916837/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to