aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-08-12 15:38:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-15 09:33:10 +0100
commit29afbf10c00b5ccdd8d2c063dda3f3e2b6aa1624 (patch)
treebbc1b9da371453e00cfcdf2965a9837efb7f2ee3 /bin
parent79751524cb1f0388975c6228f8c112e6af80f154 (diff)
downloadbitbake-29afbf10c00b5ccdd8d2c063dda3f3e2b6aa1624.tar.gz
bitbake-layers: extend show_layers
Make show_layers print layer name, path, and priority in a simple table rather than just the value of BBLAYERS. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-layers15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 9de5bbffc..88fb8ea93 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -103,7 +103,20 @@ class Commands(cmd.Cmd):
def do_show_layers(self, args):
"""show current configured layers"""
self.check_prepare_cooker()
- logger.plain(str(self.config_data.getVar('BBLAYERS', True)))
+ logger.plain('')
+ logger.plain("%s %s %s" % ("layer".ljust(20), "path".ljust(40), "priority"))
+ logger.plain('=' * 74)
+ layerdirs = str(self.config_data.getVar('BBLAYERS', True)).split()
+ for layerdir in layerdirs:
+ layername = '?'
+ layerpri = 0
+ for layer, _, regex, pri in self.cooker.status.bbfile_config_priorities:
+ if regex.match(os.path.join(layerdir, 'test')):
+ layername = layer
+ layerpri = pri
+ break
+
+ logger.plain("%s %s %d" % (layername.ljust(20), layerdir.ljust(40), layerpri))
def do_show_overlayed(self, args):
"""list overlayed recipes (where there is a recipe in another layer that has a higher layer priority)