diff options
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-layers | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 1e2cfbcac1..66fc7ca21f 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -31,15 +31,6 @@ sys.path[0:0] = [os.path.join(topdir, 'lib')] | |||
31 | 31 | ||
32 | import bb.tinfoil | 32 | import bb.tinfoil |
33 | 33 | ||
34 | |||
35 | def tinfoil_init(parserecipes): | ||
36 | import bb.tinfoil | ||
37 | tinfoil = bb.tinfoil.Tinfoil(tracking=True) | ||
38 | tinfoil.prepare(not parserecipes) | ||
39 | tinfoil.logger.setLevel(logger.getEffectiveLevel()) | ||
40 | return tinfoil | ||
41 | |||
42 | |||
43 | def logger_create(name, output=sys.stderr): | 34 | def logger_create(name, output=sys.stderr): |
44 | logger = logging.getLogger(name) | 35 | logger = logging.getLogger(name) |
45 | loggerhandler = logging.StreamHandler(output) | 36 | loggerhandler = logging.StreamHandler(output) |
@@ -86,8 +77,10 @@ def main(): | |||
86 | logger_setup_color(logger, global_args.color) | 77 | logger_setup_color(logger, global_args.color) |
87 | 78 | ||
88 | plugins = [] | 79 | plugins = [] |
89 | tinfoil = tinfoil_init(False) | 80 | tinfoil = bb.tinfoil.Tinfoil(tracking=True) |
81 | tinfoil.logger.setLevel(logger.getEffectiveLevel()) | ||
90 | try: | 82 | try: |
83 | tinfoil.prepare(True) | ||
91 | for path in ([topdir] + | 84 | for path in ([topdir] + |
92 | tinfoil.config_data.getVar('BBPATH').split(':')): | 85 | tinfoil.config_data.getVar('BBPATH').split(':')): |
93 | pluginpath = os.path.join(path, 'lib', 'bblayers') | 86 | pluginpath = os.path.join(path, 'lib', 'bblayers') |