diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-08-03 13:39:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-04 15:39:16 +0100 |
commit | 41b6684489d0261753344956042be2cc4adb0159 (patch) | |
tree | f8af3b09f3d6255dd9d0dfb1429a6ff600a7ea9a | |
parent | 907416ee1062f87f5844ab0638b54616abfc1a22 (diff) | |
download | bitbake-41b6684489d0261753344956042be2cc4adb0159.tar.gz |
bitbake-layers: initialize tinfoil before registering command line argumentsyocto-4.0.13yocto-4.0.122022-04.13-kirkstone2022-04.12-kirkstone2.0.132.0.12
Plugins may want to use it (e.g. the layers-setup plugin that would
want to discover writer sub-plugins with it), and so it makes sense
to make tinfoil available a bit eariler.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2f6c7523a622f59ddf84a1a196927492bc5fa7a2)
Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bin/bitbake-layers | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers index 449434d46..d4b1d1aaf 100755 --- a/bin/bitbake-layers +++ b/bin/bitbake-layers @@ -68,11 +68,11 @@ def main(): registered = False for plugin in plugins: + if hasattr(plugin, 'tinfoil_init'): + plugin.tinfoil_init(tinfoil) if hasattr(plugin, 'register_commands'): registered = True plugin.register_commands(subparsers) - if hasattr(plugin, 'tinfoil_init'): - plugin.tinfoil_init(tinfoil) if not registered: logger.error("No commands registered - missing plugins?") |