Skip to contentSkip to conversation

Convert bitbake-layers to plugin-based

RFC PATCH In review Christopher Larson 2 participants 2 messages Apr 30, 2016

lore
Share & tools
lore
#0 lore raw

cover Convert bitbake-layers to plugin-based

From: Christopher Larson <[email protected]>

This alters the bitbake-layers tool to use plugins for its sub-commands, following the same pattern as devtool and recipetool. <bitbake>/lib/bblayers/ holds the default plugins, and layers can provide their own in <layerdir>/lib/bblayers/.

A few minor enhancements were made to the plugin loading function after pulling it in from scriptutils.

Please review the following changes for suitability for inclusion. If you have any objections or suggestions for improvement, please respond to the patches. If you agree with the changes, please provide your Acked-by.

The following changes since commit 309f5907a3661821e041ed14645b5d165007b058:

bitbake: Switch to post release version (2016-04-29 07:41:34 +0100)

are available in the git repository at:

https://github.com/kergoth/bitbake bitbake-layers-plugins
https://github.com/kergoth/bitbake/tree/bitbake-layers-plugins

Christopher Larson (4):
bb.utils: add load_plugins from scriptutils bb.utils: use imp.get_suffixes for load_plugins bb.utils: let loaded plugins provide a plugin object
bitbake-layers: convert to plugin-based

 bin/bitbake-layers                 | 1065 ++----------------------------------
 bitbake/lib/bblayers/__init__.py   |    2 +
 bitbake/lib/bblayers/action.py     |  233 ++++++++
 bitbake/lib/bblayers/common.py     |   33 ++
 bitbake/lib/bblayers/layerindex.py |  270 +++++++++
 bitbake/lib/bblayers/query.py      |  499 +++++++++++++++++
 lib/bb/utils.py                    |   31 ++
 7 files changed, 1128 insertions(+), 1005 deletions(-)
 create mode 100644 bitbake/lib/bblayers/__init__.py
 create mode 100644 bitbake/lib/bblayers/action.py
 create mode 100644 bitbake/lib/bblayers/common.py
 create mode 100644 bitbake/lib/bblayers/layerindex.py
 create mode 100644 bitbake/lib/bblayers/query.py
Signature · 1 line
2.8.0
#1 lore raw
Quoted 11 lines · Christopher Larson

From: Christopher Larson <[email protected]>

This alters the bitbake-layers tool to use plugins for its sub-commands, following the same pattern as devtool and recipetool. <bitbake>/lib/bblayers/ holds the default plugins, and layers can provide their own in <layerdir>/lib/bblayers/.

A few minor enhancements were made to the plugin loading function after pulling it in from scriptutils.

Quoted 6 lines

Please review the following changes for suitability for inclusion. If you have
any objections or suggestions for improvement, please respond to the patches. If
you agree with the changes, please provide your Acked-by.

Erm, used the wrong arguments, didn't intend to send this as RFC, just as a patch series :)

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics