summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 67f0805cbb..7976d299c0 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -483,6 +483,27 @@ class BBCooker:
483 return pri 483 return pri
484 return 0 484 return 0
485 485
486 def show_appends_with_no_recipes( self ):
487 recipes = set(os.path.basename(f)
488 for f in self.status.pkg_fn.iterkeys())
489 recipes |= set(os.path.basename(f)
490 for f in self.skiplist.iterkeys())
491 appended_recipes = self.appendlist.iterkeys()
492 appends_without_recipes = [self.appendlist[recipe]
493 for recipe in appended_recipes
494 if recipe not in recipes]
495 if appends_without_recipes:
496 appendlines = (' %s' % append
497 for appends in appends_without_recipes
498 for append in appends)
499 msg = 'No recipes available for:\n%s' % '\n'.join(appendlines)
500 warn_only = data.getVar("BB_DANGLINGAPPENDS_WARNONLY", \
501 self.configuration.data, False) or "no"
502 if warn_only.lower() in ("1", "yes", "true"):
503 bb.warn(msg)
504 else:
505 bb.fatal(msg)
506
486 def buildDepgraph( self ): 507 def buildDepgraph( self ):
487 all_depends = self.status.all_depends 508 all_depends = self.status.all_depends
488 pn_provides = self.status.pn_provides 509 pn_provides = self.status.pn_provides
@@ -1009,6 +1030,7 @@ class BBCooker:
1009 1030
1010 if not self.parser.parse_next(): 1031 if not self.parser.parse_next():
1011 collectlog.debug(1, "parsing complete") 1032 collectlog.debug(1, "parsing complete")
1033 self.show_appends_with_no_recipes()
1012 self.buildDepgraph() 1034 self.buildDepgraph()
1013 self.state = state.running 1035 self.state = state.running
1014 return None 1036 return None