Bug 9078 - When changing SDKIMAGE_FEATURES to "dev-pkgs", some -dbg packages are still installed
Summary: When changing SDKIMAGE_FEATURES to "dev-pkgs", some -dbg packages are still i...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.0
Hardware: All Multiple
: Low enhancement
Target Milestone: 2.3
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-08 17:42 UTC by Mark Hatle
Modified: 2017-02-08 16:56 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.