Skip to content

Add support for classes-global and classes-recipe

Tim Orling yocto 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5layerindex/models: add BBClassRecipe BBClassGloballayerindex/migrations/0048_bbclassglobal_bbclassrecipe_bbclass_bbclass_type.py layerindex/models.py+83 -10 replies
2/5layerindex/recipeparse.py: extend bbclass regexlayerindex/recipeparse.py+2 -20 replies
3/5layerindex/views: add classes-recipe,-globallayerindex/views.py+2 -10 replies
4/5templates: add bbclasstype badgetemplates/layerindex/classes.html templates/layerindex/detail.html+8 -20 replies
5/5layerindex/update_layer.py: enable classes-global,-recipelayerindex/update_layer.py+16 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [layerindex-web][PATCH 0/5] Add support for classes-global and classes-recipe

Previously, only the 'classes' path was searched, but we should also be searching 'classes-global' and 'classes-recipe' since:
bitbake f33ce7e7
'BBHandler/cooker: Implement recipe and global classes'
and
oe-core f5c12800
'classes: Update classes to match new bitbake class scope functionality'

This requires changes not only in models.py, but also in recipeparse.py, update_layer.py and views.py.

While we are at it, add "Global" and "Recipe" 'badges' next to the class names in the appropriate class view templates.

[YOCTO #15238]

The following changes since commit 83378f2f9c881505027220a98514bcb933d82682:

global: deprecated pkg_resources parse_version (2024-01-22 16:08:37 -0800)

are available in the Git repository at:

https://github.com/moto-timo/layerindex-web timo/classes-global-recipe
https://github.com/moto-timo/layerindex-web/tree/timo/classes-global-recipe

Tim Orling (5):
layerindex/models: add BBClassRecipe BBClassGlobal layerindex/recipeparse.py: extend bbclass regex layerindex/views: add classes-recipe,-global
templates: add bbclasstype badge layerindex/update_layer.py: enable classes-global,-recipe

 ...obal_bbclassrecipe_bbclass_bbclass_type.py | 41 ++++++++++++++++++
 layerindex/models.py                          | 43 ++++++++++++++++++-
 layerindex/recipeparse.py                     |  4 +-
 layerindex/update_layer.py                    | 19 ++++++--
 layerindex/views.py                           |  3 +-
 templates/layerindex/classes.html             |  5 ++-
 templates/layerindex/detail.html              |  5 ++-
 7 files changed, 111 insertions(+), 9 deletions(-)
 create mode 100644 layerindex/migrations/0048_bbclassglobal_bbclassrecipe_bbclass_bbclass_type.py
Signature · 1 line
2.34.1