summaryrefslogtreecommitdiff
path: root/scripts/devtool
diff options
context:
space:
mode:
authorOla x Nilsson <ola.x.nilsson@axis.com>2016-10-25 13:03:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-13 22:47:29 +0000
commit1b2b8a0a80de17ea053002fdd124055d2798029a (patch)
tree2dc5104e7315b53dd2f8916ccff78fa8205eec06 /scripts/devtool
parent044de8424a454a7057906e44eb56e2134ebb17e4 (diff)
downloadopenembedded-core-1b2b8a0a80de17ea053002fdd124055d2798029a.tar.gz
openembedded-core-1b2b8a0a80de17ea053002fdd124055d2798029a.tar.bz2
openembedded-core-1b2b8a0a80de17ea053002fdd124055d2798029a.zip
devtool: Load plugins in a well defined order
To allow devtool plugins in one layer to shadow another in a well defined way, first search BBPATH/lib/devtool directories and then scripts/lib/devool and load only the first found. The previous search and load loop would load all found plugins with the ones found later replacing any found before. Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/devtool b/scripts/devtool
index 0c32c502a3..219749365c 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -294,7 +294,8 @@ def main():
finally:
tinfoil.shutdown()
- for path in [scripts_path] + global_args.bbpath.split(':'):
+ # 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')
scriptutils.load_plugins(logger, plugins, pluginpath)