diff options
-rwxr-xr-x | bitbake/bin/bitbake-layers | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 9de5bbffcb..88fb8ea939 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -103,7 +103,20 @@ class Commands(cmd.Cmd): | |||
103 | def do_show_layers(self, args): | 103 | def do_show_layers(self, args): |
104 | """show current configured layers""" | 104 | """show current configured layers""" |
105 | self.check_prepare_cooker() | 105 | self.check_prepare_cooker() |
106 | logger.plain(str(self.config_data.getVar('BBLAYERS', True))) | 106 | logger.plain('') |
107 | logger.plain("%s %s %s" % ("layer".ljust(20), "path".ljust(40), "priority")) | ||
108 | logger.plain('=' * 74) | ||
109 | layerdirs = str(self.config_data.getVar('BBLAYERS', True)).split() | ||
110 | for layerdir in layerdirs: | ||
111 | layername = '?' | ||
112 | layerpri = 0 | ||
113 | for layer, _, regex, pri in self.cooker.status.bbfile_config_priorities: | ||
114 | if regex.match(os.path.join(layerdir, 'test')): | ||
115 | layername = layer | ||
116 | layerpri = pri | ||
117 | break | ||
118 | |||
119 | logger.plain("%s %s %d" % (layername.ljust(20), layerdir.ljust(40), layerpri)) | ||
107 | 120 | ||
108 | def do_show_overlayed(self, args): | 121 | def do_show_overlayed(self, args): |
109 | """list overlayed recipes (where there is a recipe in another layer that has a higher layer priority) | 122 | """list overlayed recipes (where there is a recipe in another layer that has a higher layer priority) |