diff options
Diffstat (limited to 'yocto-poky/meta/lib/oe/packagegroup.py')
-rw-r--r-- | yocto-poky/meta/lib/oe/packagegroup.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/yocto-poky/meta/lib/oe/packagegroup.py b/yocto-poky/meta/lib/oe/packagegroup.py deleted file mode 100644 index a6fee5f95..000000000 --- a/yocto-poky/meta/lib/oe/packagegroup.py +++ /dev/null @@ -1,36 +0,0 @@ -import itertools - -def is_optional(feature, d): - packages = d.getVar("FEATURE_PACKAGES_%s" % feature, True) - if packages: - return bool(d.getVarFlag("FEATURE_PACKAGES_%s" % feature, "optional", True)) - else: - return bool(d.getVarFlag("PACKAGE_GROUP_%s" % feature, "optional", True)) - -def packages(features, d): - for feature in features: - packages = d.getVar("FEATURE_PACKAGES_%s" % feature, True) - if not packages: - packages = d.getVar("PACKAGE_GROUP_%s" % feature, True) - for pkg in (packages or "").split(): - yield pkg - -def required_packages(features, d): - req = filter(lambda feature: not is_optional(feature, d), features) - return packages(req, d) - -def optional_packages(features, d): - opt = filter(lambda feature: is_optional(feature, d), features) - return packages(opt, d) - -def active_packages(features, d): - return itertools.chain(required_packages(features, d), - optional_packages(features, d)) - -def active_recipes(features, d): - import oe.packagedata - - for pkg in active_packages(features, d): - recipe = oe.packagedata.recipename(pkg, d) - if recipe: - yield recipe |