aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/cache_extra.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-09-18 13:15:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 15:14:13 +0100
commit47c171005fb3803d936e65fcd4436c643883ae16 (patch)
tree83704123494d89863009ef4054a4b6817d91bd78 /lib/bb/cache_extra.py
parentb4a5e4be50d871a80dbe0993117d73f5ad82e38f (diff)
downloadbitbake-47c171005fb3803d936e65fcd4436c643883ae16.tar.gz
bitbake: cooker: get extra information from recipe cache
The loaded cache modules may add extra attributes to the recipecache, that will be populated by the cache classes required by the UI. These attributes will be used by the UI to display relevant information. Adds cachefields cache class field to specify for each cache class which attributes will be set in the recipecache. Adds code to automatically expand depends tree with the fields exported by the extra cache class. Fixes a cache field name in the HOB UI. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cache_extra.py')
-rw-r--r--lib/bb/cache_extra.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/cache_extra.py b/lib/bb/cache_extra.py
index 9e38a439e..83f4959d6 100644
--- a/lib/bb/cache_extra.py
+++ b/lib/bb/cache_extra.py
@@ -35,6 +35,12 @@ class HobRecipeInfo(RecipeInfoCommon):
# such as (bb_cache.dat, bb_extracache_hob.dat)
cachefile = "bb_extracache_" + classname +".dat"
+ # override this member with the list of extra cache fields
+ # that this class will provide
+ cachefields = ['summary', 'license', 'section',
+ 'description', 'homepage', 'bugtracker',
+ 'prevision', 'files_info']
+
def __init__(self, filename, metadata):
self.summary = self.getvar('SUMMARY', metadata)