mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: cooker: drop appliedappendlist
Whilst collecting this list on the fly may be quicker, doing so within a function that's meant to *query* the list of bbappends is poor practice. (Bitbake rev: 5c12aa3b0010d7d1733e54a0ca7d0af465454210) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e2ddc18874
commit
b84bf58c19
+18
-10
@@ -919,15 +919,25 @@ class BBCooker:
|
|||||||
print("}", file=tdepends_file)
|
print("}", file=tdepends_file)
|
||||||
logger.info("Task dependencies saved to 'task-depends.dot'")
|
logger.info("Task dependencies saved to 'task-depends.dot'")
|
||||||
|
|
||||||
def show_appends_with_no_recipes( self ):
|
def show_appends_with_no_recipes(self):
|
||||||
appends_without_recipes = [self.collection.appendlist[recipe]
|
# Determine which bbappends haven't been applied
|
||||||
for recipe in self.collection.appendlist
|
|
||||||
if recipe not in self.collection.appliedappendlist]
|
# First get list of recipes, including skipped
|
||||||
|
recipefns = self.recipecache.pkg_fn.keys()
|
||||||
|
recipefns.extend(self.skiplist.keys())
|
||||||
|
|
||||||
|
# Work out list of bbappends that have been applied
|
||||||
|
applied_appends = []
|
||||||
|
for fn in recipefns:
|
||||||
|
applied_appends.extend(self.collection.get_file_appends(fn))
|
||||||
|
|
||||||
|
appends_without_recipes = []
|
||||||
|
for _, appendfn in self.collection.bbappends:
|
||||||
|
if not appendfn in applied_appends:
|
||||||
|
appends_without_recipes.append(appendfn)
|
||||||
|
|
||||||
if appends_without_recipes:
|
if appends_without_recipes:
|
||||||
appendlines = (' %s' % append
|
msg = 'No recipes available for:\n %s' % '\n '.join(appends_without_recipes)
|
||||||
for appends in appends_without_recipes
|
|
||||||
for append in appends)
|
|
||||||
msg = 'No recipes available for:\n%s' % '\n'.join(appendlines)
|
|
||||||
warn_only = self.data.getVar("BB_DANGLINGAPPENDS_WARNONLY", \
|
warn_only = self.data.getVar("BB_DANGLINGAPPENDS_WARNONLY", \
|
||||||
False) or "no"
|
False) or "no"
|
||||||
if warn_only.lower() in ("1", "yes", "true"):
|
if warn_only.lower() in ("1", "yes", "true"):
|
||||||
@@ -1646,7 +1656,6 @@ class CookerCollectFiles(object):
|
|||||||
def __init__(self, priorities):
|
def __init__(self, priorities):
|
||||||
self.appendlist = {}
|
self.appendlist = {}
|
||||||
self.bbappends = []
|
self.bbappends = []
|
||||||
self.appliedappendlist = []
|
|
||||||
self.bbfile_config_priorities = priorities
|
self.bbfile_config_priorities = priorities
|
||||||
|
|
||||||
def calc_bbfile_priority( self, filename, matched = None ):
|
def calc_bbfile_priority( self, filename, matched = None ):
|
||||||
@@ -1769,7 +1778,6 @@ class CookerCollectFiles(object):
|
|||||||
for b in self.bbappends:
|
for b in self.bbappends:
|
||||||
(bbappend, filename) = b
|
(bbappend, filename) = b
|
||||||
if (bbappend == f) or ('%' in bbappend and bbappend.startswith(f[:bbappend.index('%')])):
|
if (bbappend == f) or ('%' in bbappend and bbappend.startswith(f[:bbappend.index('%')])):
|
||||||
self.appliedappendlist.append(bbappend)
|
|
||||||
filelist.append(filename)
|
filelist.append(filename)
|
||||||
return filelist
|
return filelist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user