[bitbake-devel] [RFC master][PATCH 0/4] Convert bitbake-layers to plugin-based

Christopher Larson kergoth at gmail.com
Sat Apr 30 19:40:50 UTC 2016


From: Christopher Larson <chris_larson at mentor.com>

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

-- 
2.8.0




More information about the bitbake-devel mailing list