[yocto] Removing /usr/src/debug from image
Mark Hatle
mark.hatle at windriver.com
Tue Dec 5 10:46:57 PST 2017
On 12/5/17 12:40 PM, Koehler, Yannick wrote:
> Hi,
>
> I have edited my local.conf to remove the debug related EXTRA_IMAGE_FEATURES. My rootfs still contains a /usr/src/debug folder, which I would like to get rid of. This likely come from -dbg package inclusion, which I would like to understand how to control/remove. We are using Yocto 1.9/2.0, and the only thing I found related to this is
>
> INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
The above is definitely not what you want. It will keep debug symbols in all of
your binaries, increasing the size of the eventual image.
The base-files recipe created a set of directories. If this directory is empty
on your resulting image, I would assume it is created from there. If this is a
concern, create a bbappend and remove that directory in a do_install_append.
Is there any particular reason you want it removed? It should only be taking 1
inode, assuming it is empty.
> Yet, from documentation this appears to be about generating the -dbg packages which I do not mind, but I do not want them install in my image. I am trying to understand what pulls them in. My image recipe pulls the packagegroup-core-boot, ROOTFS_PKGMANAGE_BOOTSTRAP, CORE_IMAGE_EXTRA_INSTALL, ca-certificates, package-management and some other private package but none of those include -dbg...
>
> Any help appreciated.
>
> --
> Yannick Koehler
>
More information about the yocto
mailing list