From fd63761d2a2f5b8e630cb34885249622cc4d9ce1 Mon Sep 17 00:00:00 2001 From: Alex Franco Date: Mon, 31 Aug 2015 22:02:46 +0000 Subject: Support for recipe inherits field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Aníbal Limón Signed-off-by: Paul Eggleton --- layerindex/update.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layerindex/update.py') 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 -- cgit 1.2.3-korg