Bug 9078

Summary: When changing SDKIMAGE_FEATURES to "dev-pkgs", some -dbg packages are still installed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mark Hatle <mark.hatle>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: 2.0   
Target Milestone: 2.3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mark Hatle 2016-02-08 17:42:02 UTC
In order to reduce the size of the generated SDK, I'm trying to disable the inclusion of the *-dbg packages into the build.

I set the switch, in my local.conf, to:

SDKIMAGE_FEATURES = "dev-pkgs"

This eliminated most of the debug binaries and sources, except for the core glibc/libgcc pieces.

Those pieces are being added by:

TOOLCHAIN_TARGET_TASK ?= " \
    ${@multilib_pkg_extend(d, 'packagegroup-core-standalone-sdk-target')} \
    ${@multilib_pkg_extend(d, 'packagegroup-core-standalone-sdk-target-dbg')} \
    "

It would be nice if the second entry was conditional on dbg-pkgs being in the SDKIMAGE_FEATURES.
Comment 1 Ross Burton 2016-12-21 16:59:31 UTC
Turns out we can just rely on the complementary packages logic to pull in the right bits if required, so this was a trivial fix.
Comment 2 Ross Burton 2017-02-08 16:56:53 UTC
Fixed in oe-core 4c711830ae26008f73bbf557964bdb86b8c922da.