summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/utils.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index e14743f3f3..8d3efe440c 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -87,15 +87,18 @@ def inherits(d, *classes):
87 """Return True if the metadata inherits any of the specified classes""" 87 """Return True if the metadata inherits any of the specified classes"""
88 return any(bb.data.inherits_class(cls, d) for cls in classes) 88 return any(bb.data.inherits_class(cls, d) for cls in classes)
89 89
90def distro_features_backfill(d): 90def features_backfill(var,d):
91 # This construct allows the addition of new features to variable specified
92 # as var
93 # Example for var = "DISTRO_FEATURES"
91 # This construct allows the addition of new features to DISTRO_FEATURES 94 # This construct allows the addition of new features to DISTRO_FEATURES
92 # that if not present would disable existing functionality, without 95 # that if not present would disable existing functionality, without
93 # disturbing distributions that have already set DISTRO_FEATURES. 96 # disturbing distributions that have already set DISTRO_FEATURES.
94 # Distributions wanting to elide a value in DISTRO_FEATURES_BACKFILL should 97 # Distributions wanting to elide a value in DISTRO_FEATURES_BACKFILL should
95 # add the feature to DISTRO_FEATURES_BACKFILL_CONSIDERED 98 # add the feature to DISTRO_FEATURES_BACKFILL_CONSIDERED
96 99
97 backfill = (d.getVar("DISTRO_FEATURES_BACKFILL", True) or "").split() 100 backfill = (d.getVar(var+"_BACKFILL", True) or "").split()
98 considered = (d.getVar("DISTRO_FEATURES_BACKFILL_CONSIDERED", True) or "").split() 101 considered = (d.getVar(var+"_BACKFILL_CONSIDERED", True) or "").split()
99 102
100 addfeatures = [] 103 addfeatures = []
101 for feature in backfill: 104 for feature in backfill: