summaryrefslogtreecommitdiffstats
path: root/meta/classes/packagegroup.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/packagegroup.bbclass')
-rw-r--r--meta/classes/packagegroup.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass
index 92e0bbe9de..d56248f2de 100644
--- a/meta/classes/packagegroup.bbclass
+++ b/meta/classes/packagegroup.bbclass
@@ -27,8 +27,11 @@ python () {
27 if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1': 27 if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1':
28 # Add complementary packagegroups 28 # Add complementary packagegroups
29 genpackages = [] 29 genpackages = []
30 complementary_types = ['-dbg', '-dev']
31 if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d):
32 complementary_types.append('-ptest')
30 for pkg in packages: 33 for pkg in packages:
31 for postfix in ['-dbg', '-dev', '-ptest']: 34 for postfix in complementary_types:
32 genpackages.append(pkg+postfix) 35 genpackages.append(pkg+postfix)
33 d.setVar("ALLOW_EMPTY_%s" % pkg+postfix, "1") 36 d.setVar("ALLOW_EMPTY_%s" % pkg+postfix, "1")
34 d.setVar('PACKAGES', ' '.join(packages+genpackages)) 37 d.setVar('PACKAGES', ' '.join(packages+genpackages))