summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-03-02 17:59:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-14 20:48:27 +0000
commite58b3a480411515e9cb1d15adf4b7fa471ed4374 (patch)
treeafc93c6b8091930649fdd8f97a4f97cac80b26f0 /bitbake/bin
parentff3e326269d27662c830b04e05b571d257b89346 (diff)
downloadast2050-yocto-poky-e58b3a480411515e9cb1d15adf4b7fa471ed4374.zip
ast2050-yocto-poky-e58b3a480411515e9cb1d15adf4b7fa471ed4374.tar.gz
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 <josh@linux.intel.com>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x[-rw-r--r--]bitbake/bin/bitbake-layers12
1 files changed, 8 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index ea903e5..b6106cd 100644..100755
--- 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)
OpenPOWER on IntegriCloud