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:38:28 +0000
commitc9c0974209d3f6ae3827bb8f8b0258147aac49e6 (patch)
treec747e7df4ef44a1783a4aee9c98a1cea73d07807 /scripts
parentafe4c413f7a4e61474e11e8b02cebecdd19fd225 (diff)
downloadpoky-c9c0974209d3f6ae3827bb8f8b0258147aac49e6.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. (From OE-Core rev: e9c3c996f2e9a52462c4426f394798a211e53ae1) 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():
299 return 2 299 return 2
300 300
301 # Search BBPATH first to allow layers to override plugins in scripts_path 301 # Search BBPATH first to allow layers to override plugins in scripts_path
302 for path in global_args.bbpath.split(':') + [scripts_path]: 302 pluginpaths = [os.path.join(path, 'lib', 'devtool') for path in global_args.bbpath.split(':') + [scripts_path]]
303 pluginpath = os.path.join(path, 'lib', 'devtool') 303 context.pluginpaths = pluginpaths
304 for pluginpath in pluginpaths:
304 scriptutils.load_plugins(logger, plugins, pluginpath) 305 scriptutils.load_plugins(logger, plugins, pluginpath)
305 306
306 subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='<subcommand>') 307 subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='<subcommand>')