recipetool: Load plugins in a well defined order

To allow recipetool plugins in one layer to shadow another in a well
defined way, first search BBPATH/lib/recipetool directories and then
scripts/lib/recipetool 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.

(From OE-Core rev: 7a8726a3662a3909dc6ef6e8d1029d0b1aa938c3)

Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ola x Nilsson 2016-10-25 13:03:35 +02:00 committed by Richard Purdie
parent 14abe7982c
commit 8dfc417780
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ def main():
tinfoil = tinfoil_init(False)
try:
for path in ([scripts_path] +
tinfoil.config_data.getVar('BBPATH', True).split(':')):
for path in (tinfoil.config_data.getVar('BBPATH', True).split(':')
+ [scripts_path]):
pluginpath = os.path.join(path, 'lib', 'recipetool')
scriptutils.load_plugins(logger, plugins, pluginpath)