From e58b3a480411515e9cb1d15adf4b7fa471ed4374 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 2 Mar 2011 17:59:38 +0000 Subject: bitbake/bitbake-layers: fix to run with recent changes This patch marks the bitbake-layers script as executable and fixes the instantiation of the BBCooker to match recent changes in the BitBake libraries. I've also added a brief header which demonstrates the intent and usage as taken from Chris Larson's original commit message. Note: this fix is not upstreamable, it's only required in Poky because of an outstanding difference between BitBake master and Poky's BitBake. Signed-off-by: Joshua Lock --- bitbake/bin/bitbake-layers | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 bitbake/bin/bitbake-layers (limited to 'bitbake/bin/bitbake-layers') diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers old mode 100644 new mode 100755 index ea903e5c9b..b6106cd075 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers @@ -1,5 +1,11 @@ #!/usr/bin/env python +# This script has subcommands which operate against your bitbake layers, either +# displaying useful information, or acting against them. +# Currently, it only provides a show_appends command, which shows you what +# bbappends are in effect, and warns you if you have appends which are not being +# utilized. + import cmd import logging import os.path @@ -13,6 +19,7 @@ import bb.cache import bb.cooker import bb.providers from bb.cooker import state +from bb.server import none logger = logging.getLogger('BitBake') @@ -38,14 +45,11 @@ class Commands(cmd.Cmd): self.returncode = 0 self.config = Config(parse_only=True) self.cooker = bb.cooker.BBCooker(self.config, - self.register_idle_function) + bb.server.none) self.config_data = self.cooker.configuration.data bb.providers.logger.setLevel(logging.ERROR) self.prepare_cooker() - def register_idle_function(self, function, data): - pass - def prepare_cooker(self): sys.stderr.write("Parsing recipes..") logger.setLevel(logging.ERROR) -- cgit v1.2.3-54-g00ecf