summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-layers
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/bitbake-layers
parentff3e326269d27662c830b04e05b571d257b89346 (diff)
downloadpoky-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/bitbake-layers')
-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 ea903e5c9b..b6106cd075 100644..100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -1,5 +1,11 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2 2
3# This script has subcommands which operate against your bitbake layers, either
4# displaying useful information, or acting against them.
5# Currently, it only provides a show_appends command, which shows you what
6# bbappends are in effect, and warns you if you have appends which are not being
7# utilized.
8
3import cmd 9import cmd
4import logging 10import logging
5import os.path 11import os.path
@@ -13,6 +19,7 @@ import bb.cache
13import bb.cooker 19import bb.cooker
14import bb.providers 20import bb.providers
15from bb.cooker import state 21from bb.cooker import state
22from bb.server import none
16 23
17 24
18logger = logging.getLogger('BitBake') 25logger = logging.getLogger('BitBake')
@@ -38,14 +45,11 @@ class Commands(cmd.Cmd):
38 self.returncode = 0 45 self.returncode = 0
39 self.config = Config(parse_only=True) 46 self.config = Config(parse_only=True)
40 self.cooker = bb.cooker.BBCooker(self.config, 47 self.cooker = bb.cooker.BBCooker(self.config,
41 self.register_idle_function) 48 bb.server.none)
42 self.config_data = self.cooker.configuration.data 49 self.config_data = self.cooker.configuration.data
43 bb.providers.logger.setLevel(logging.ERROR) 50 bb.providers.logger.setLevel(logging.ERROR)
44 self.prepare_cooker() 51 self.prepare_cooker()
45 52
46 def register_idle_function(self, function, data):
47 pass
48
49 def prepare_cooker(self): 53 def prepare_cooker(self):
50 sys.stderr.write("Parsing recipes..") 54 sys.stderr.write("Parsing recipes..")
51 logger.setLevel(logging.ERROR) 55 logger.setLevel(logging.ERROR)