diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-08-03 13:39:53 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-08-04 04:43:41 -1000 |
| commit | 7fdfb828fd7586a2e9b93b174e48246fc2a90f3e (patch) | |
| tree | 6286175a60bdfd3a28631764f1cd10bba3e76fa9 /bitbake/bin | |
| parent | fa7dd8ac75a98c04a4ca2cf90882c2b1c27b9679 (diff) | |
| download | poky-7fdfb828fd7586a2e9b93b174e48246fc2a90f3e.tar.gz | |
bitbake: bitbake-layers: initialize tinfoil before registering command line arguments
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.
(Bitbake rev: 41b6684489d0261753344956042be2cc4adb0159)
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>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake/bin')
| -rwxr-xr-x | bitbake/bin/bitbake-layers | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 449434d468..d4b1d1aaf2 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
| @@ -68,11 +68,11 @@ def main(): | |||
| 68 | 68 | ||
| 69 | registered = False | 69 | registered = False |
| 70 | for plugin in plugins: | 70 | for plugin in plugins: |
| 71 | if hasattr(plugin, 'tinfoil_init'): | ||
| 72 | plugin.tinfoil_init(tinfoil) | ||
| 71 | if hasattr(plugin, 'register_commands'): | 73 | if hasattr(plugin, 'register_commands'): |
| 72 | registered = True | 74 | registered = True |
| 73 | plugin.register_commands(subparsers) | 75 | plugin.register_commands(subparsers) |
| 74 | if hasattr(plugin, 'tinfoil_init'): | ||
| 75 | plugin.tinfoil_init(tinfoil) | ||
| 76 | 76 | ||
| 77 | if not registered: | 77 | if not registered: |
| 78 | logger.error("No commands registered - missing plugins?") | 78 | logger.error("No commands registered - missing plugins?") |
