summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-layers
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-05-24 11:12:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 11:24:01 +0100
commit72accaf7d909bea14412fee06004b6b8acbe5b80 (patch)
treef8c6f66f540a0bd3163db803d21a8e4d99132701 /bitbake/bin/bitbake-layers
parentfa4b1fa2577fb1a8128154c2f1417df575dbb022 (diff)
downloadpoky-72accaf7d909bea14412fee06004b6b8acbe5b80.tar.gz
bitbake: bitbake-layers: fix show-appends and flatten for recent cooker changes
Fixes the show-appends and flatten subcommands for recent refactoring in cooker. [YOCTO #4536] [YOCTO #4535] (Bitbake rev: 54817d0de667941ee68fe3490684159e2d90e9c5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-layers')
-rwxr-xr-xbitbake/bin/bitbake-layers16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index 86a17a55ea..ae61239da6 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -371,8 +371,8 @@ build results (as the layer priority order has effectively changed).
371 appended_recipes = [] 371 appended_recipes = []
372 for layer in layers: 372 for layer in layers:
373 overlayed = [] 373 overlayed = []
374 for f in self.bbhandler.cooker.overlayed.iterkeys(): 374 for f in self.bbhandler.cooker.collection.overlayed.iterkeys():
375 for of in self.bbhandler.cooker.overlayed[f]: 375 for of in self.bbhandler.cooker.collection.overlayed[f]:
376 if of.startswith(layer): 376 if of.startswith(layer):
377 overlayed.append(of) 377 overlayed.append(of)
378 378
@@ -396,8 +396,8 @@ build results (as the layer priority order has effectively changed).
396 logger.warn('Overwriting file %s', fdest) 396 logger.warn('Overwriting file %s', fdest)
397 bb.utils.copyfile(f1full, fdest) 397 bb.utils.copyfile(f1full, fdest)
398 if ext == '.bb': 398 if ext == '.bb':
399 if f1 in self.bbhandler.cooker.appendlist: 399 if f1 in self.bbhandler.cooker.collection.appendlist:
400 appends = self.bbhandler.cooker.appendlist[f1] 400 appends = self.bbhandler.cooker.collection.appendlist[f1]
401 if appends: 401 if appends:
402 logger.plain(' Applying appends to %s' % fdest ) 402 logger.plain(' Applying appends to %s' % fdest )
403 for appendname in appends: 403 for appendname in appends:
@@ -406,9 +406,9 @@ build results (as the layer priority order has effectively changed).
406 appended_recipes.append(f1) 406 appended_recipes.append(f1)
407 407
408 # Take care of when some layers are excluded and yet we have included bbappends for those recipes 408 # Take care of when some layers are excluded and yet we have included bbappends for those recipes
409 for recipename in self.bbhandler.cooker.appendlist.iterkeys(): 409 for recipename in self.bbhandler.cooker.collection.appendlist.iterkeys():
410 if recipename not in appended_recipes: 410 if recipename not in appended_recipes:
411 appends = self.bbhandler.cooker.appendlist[recipename] 411 appends = self.bbhandler.cooker.collection.appendlist[recipename]
412 first_append = None 412 first_append = None
413 for appendname in appends: 413 for appendname in appends:
414 layer = layer_path_match(appendname) 414 layer = layer_path_match(appendname)
@@ -498,7 +498,7 @@ usage: show-appends
498Recipes are listed with the bbappends that apply to them as subitems. 498Recipes are listed with the bbappends that apply to them as subitems.
499""" 499"""
500 self.bbhandler.prepare() 500 self.bbhandler.prepare()
501 if not self.bbhandler.cooker.appendlist: 501 if not self.bbhandler.cooker.collection.appendlist:
502 logger.plain('No append files found') 502 logger.plain('No append files found')
503 return 503 return
504 504
@@ -550,7 +550,7 @@ Recipes are listed with the bbappends that apply to them as subitems.
550 continue 550 continue
551 551
552 basename = os.path.basename(filename) 552 basename = os.path.basename(filename)
553 appends = self.bbhandler.cooker.appendlist.get(basename) 553 appends = self.bbhandler.cooker.collection.appendlist.get(basename)
554 if appends: 554 if appends:
555 appended.append((basename, list(appends))) 555 appended.append((basename, list(appends)))
556 else: 556 else: