aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorAlex Franco <alejandro.franco@linux.intel.com>2015-08-31 22:02:46 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-07 11:34:28 +0100
commitfd63761d2a2f5b8e630cb34885249622cc4d9ce1 (patch)
treeced5c6769c930318ecc1f39d4304c006e589794d /layerindex/update.py
parent8966d2ea4e04a50f46a2816939733290f2124b66 (diff)
downloadopenembedded-core-contrib-fd63761d2a2f5b8e630cb34885249622cc4d9ce1.tar.gz
Support for recipe inherits field
To identify image recipes and provide inheritance data for recipes, an inherits field was added to the recipe model, and then populated using refactored data from __inherit_cache. Finally the field was also added to page templates, along with style changes proposed in attachment, and an additional style change to display the inherits field as a list in detailed view. The field skips globally inherited data as proposed. [YOCTO #7575] Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/layerindex/update.py b/layerindex/update.py
index 22ad6ff399..1e96da6b5c 100755
--- a/layerindex/update.py
+++ b/layerindex/update.py
@@ -65,6 +65,10 @@ def update_recipe_file(data, path, recipe, layerdir_start, repodir):
recipe.bugtracker = envdata.getVar("BUGTRACKER", True) or ""
recipe.provides = envdata.getVar("PROVIDES", True) or ""
recipe.bbclassextend = envdata.getVar("BBCLASSEXTEND", True) or ""
+ # Handle recipe inherits for this recipe
+ gr = set(data.getVar("__inherit_cache", True) or [])
+ lr = set(envdata.getVar("__inherit_cache", True) or [])
+ recipe.inherits = ' '.join(sorted({split_recipe_fn(r)[0] for r in lr if r not in gr}))
recipe.save()
# Get file dependencies within this layer