diff options
author | Christopher Larson <chris_larson@mentor.com> | 2015-07-13 11:43:40 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-27 12:28:12 +0100 |
commit | f9bc3b27244a141ec7273445d3ea139a047e0ddf (patch) | |
tree | 6e8208081c0bc2a0924dfea7404020fbbcda1888 /scripts/opkg-query-helper.py | |
parent | 899288a1b255052a6ee0f97d42f8c4f0ec3c3140 (diff) | |
download | openembedded-core-f9bc3b27244a141ec7273445d3ea139a047e0ddf.tar.gz openembedded-core-f9bc3b27244a141ec7273445d3ea139a047e0ddf.tar.bz2 openembedded-core-f9bc3b27244a141ec7273445d3ea139a047e0ddf.zip |
devtool: also load plugins from BBPATH
This makes it easier to extend, as a layer can add its own sub-commands.
Argument parsing is also separated into two steps, the same way it's done in
recipetool, as we need access to the global command-line arguments early,
before plugins are loaded, both for debugging arguments and for the bitbake
path (we need to load the bitbake module to get tinfoil, which is now needed
to load the plugins).
Rather than constructing tinfoil once and passing it through into sub-commands
for their use, we have to construct it for configuration metadata, use it, and
then shut it down, as some sub-commands call out to recipetool, which needs
its own tinfoil instance, and therefore needs to acquire the bitbake lock. If
we're still holding the lock at that point, that's clearly a problem.
[YOCTO #7625]
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/opkg-query-helper.py')
0 files changed, 0 insertions, 0 deletions