From patchwork Mon Jul 23 21:42:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5/6] classes/image: add staticdev-pkgs IMAGE_FEATURES feature Date: Mon, 23 Jul 2012 21:42:28 -0000 From: Paul Eggleton X-Patchwork-Id: 32877 Message-Id: <04a1b5ed1aa6db85a5442019b1f721bd5c0409e7.1343079550.git.paul.eggleton@linux.intel.com> To: openembedded-core@lists.openembedded.org Add a staticdev-pkgs feature that can be added to IMAGE_FEATURES in order to install all staticdev packages. Fixes [YOCTO #2531]. Signed-off-by: Paul Eggleton --- meta/classes/image.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index ed531e3..429e883 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -35,7 +35,7 @@ NORMAL_FEATURE_INSTALL_OPTIONAL = "${@' '.join(oe.packagegroup.optional_packages def normal_groups(d): """Return all the IMAGE_FEATURES, with the exception of our special package groups""" - extras = set(['dev-pkgs', 'doc-pkgs', 'dbg-pkgs']) + extras = set(['dev-pkgs', 'staticdev-pkgs', 'doc-pkgs', 'dbg-pkgs']) features = set(oe.data.typed_value('IMAGE_FEATURES', d)) return features.difference(extras) @@ -47,6 +47,8 @@ def complementary_globs(featurevar, d): for feature in features: if feature == 'dev-pkgs': globs.append('*-dev') + elif feature == 'staticdev-pkgs': + globs.append('*-staticdev') elif feature == 'doc-pkgs': globs.append('*-doc') elif feature == 'dbg-pkgs':