summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2024-01-22 14:58:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-02 10:36:53 +0000
commite9c3c996f2e9a52462c4426f394798a211e53ae1 (patch)
treea155f75960c84d74c403d230a2c2879db70257df /scripts
parent72388593d62d45d54790710b9665eb8f13897c8c (diff)
downloadopenembedded-core-contrib-e9c3c996f2e9a52462c4426f394798a211e53ae1.tar.gz
devtool: support plugins with plugins
Pass the plugins search path to plugins via context. This allows plugins to search for their own plugins at the same paths. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/devtool5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/devtool b/scripts/devtool
index 3aae7b93b4..60ea3e8298 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -299,8 +299,9 @@ def main():
return 2
# Search BBPATH first to allow layers to override plugins in scripts_path
- for path in global_args.bbpath.split(':') + [scripts_path]:
- pluginpath = os.path.join(path, 'lib', 'devtool')
+ pluginpaths = [os.path.join(path, 'lib', 'devtool') for path in global_args.bbpath.split(':') + [scripts_path]]
+ context.pluginpaths = pluginpaths
+ for pluginpath in pluginpaths:
scriptutils.load_plugins(logger, plugins, pluginpath)
subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='<subcommand>')