new file mode 120000
@@ -0,0 +1 @@
+bitbake-layers
\ No newline at end of file
@@ -18,13 +18,14 @@ import warnings
warnings.simplefilter("default")
bindir = os.path.dirname(__file__)
+toolname = os.path.basename(__file__).split(".")[0]
topdir = os.path.dirname(bindir)
sys.path[0:0] = [os.path.join(topdir, 'lib')]
import bb.tinfoil
import bb.msg
-logger = bb.msg.logger_create('bitbake-layers', sys.stdout)
+logger = bb.msg.logger_create(toolname, sys.stdout)
def main():
parser = argparse.ArgumentParser(
@@ -67,7 +68,8 @@ def main():
bbpaths = tinfoil.config_data.getVar('BBPATH').split(':')
for path in ([topdir] + bbpaths):
- pluginpath = os.path.join(path, 'lib', 'bblayers')
+ pluginbasepath = {"bitbake-layers":'bblayers', 'bitbake-config-build':'bbconfigbuild'}[toolname]
+ pluginpath = os.path.join(path, 'lib', pluginbasepath)
bb.utils.load_plugins(logger, plugins, pluginpath)
registered = False