On Thu, Sep 12, 2019 at 1:52 PM Ross Burton <ross.bur...@intel.com> wrote: > > On 12/09/2019 11:13, Teemu K wrote: > > Hi, > > > > I'm not entirely sure if this is bug or feature. > > > > I've created sdk to my image with populate_sdk - command. I noticed > > that in the SDK the x86_64 - directory is 384MB and that contains all > > the toolchains etc., but the target side > > (cortexa9hf-neon-poky-linux-gnueabi) is 5.7GB. Majority of it is in > > .debug - directories. > > > > What causes the confusion here is that I haven't enabled debug-symbols > > in my local.conf and I don't have any other debug stuff enabled there > > either. Are those the debug-symbols that can be used to debug software > > on target with GDB for example? I thought that debug symbol > > information needs to be separately enabled. > > > > If they are not, then can I get rid of them somehow? > > SDKIMAGE_FEATURES ??= "dev-pkgs dbg-pkgs src-pkgs > ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'doc-pkgs', > '', d)}" > > SDKs by default contain debug symbols, and yes they can be used with gdb > to debug on target. > > If you don't want them in the SDK, remove dbg-pkgs (and src-pkgs whilst > you're there) from SDKIMAGE_FEATURES. This is exactly what I was looking for. Thanks for that.
One question is that is there a way to make package that would contain only dpg-pkgs and src-pkgs? Ie. it'd be like 'debug-addition' for SDK? I know how to install those things to target, but how to get them to a package (or in separate directory) to host. -Teemu Keskinarkaus -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto