diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-09-18 13:15:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-22 12:19:44 +0100 |
commit | 0c51d610e1bdb16ec96c29ec2b92de922f67b009 (patch) | |
tree | 41034a42a5129b782e0f6d5a26fa2091b4475699 /bitbake/lib/bb/cache_extra.py | |
parent | 5ee82d404897c6af8d7cdfc728c6ba007bfd76b7 (diff) | |
download | poky-0c51d610e1bdb16ec96c29ec2b92de922f67b009.tar.gz |
bitbake: 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.
(Bitbake rev: 47c171005fb3803d936e65fcd4436c643883ae16)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cache_extra.py')
-rw-r--r-- | bitbake/lib/bb/cache_extra.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cache_extra.py b/bitbake/lib/bb/cache_extra.py index 9e38a439e8..83f4959d6c 100644 --- a/bitbake/lib/bb/cache_extra.py +++ b/bitbake/lib/bb/cache_extra.py | |||
@@ -35,6 +35,12 @@ class HobRecipeInfo(RecipeInfoCommon): | |||
35 | # such as (bb_cache.dat, bb_extracache_hob.dat) | 35 | # such as (bb_cache.dat, bb_extracache_hob.dat) |
36 | cachefile = "bb_extracache_" + classname +".dat" | 36 | cachefile = "bb_extracache_" + classname +".dat" |
37 | 37 | ||
38 | # override this member with the list of extra cache fields | ||
39 | # that this class will provide | ||
40 | cachefields = ['summary', 'license', 'section', | ||
41 | 'description', 'homepage', 'bugtracker', | ||
42 | 'prevision', 'files_info'] | ||
43 | |||
38 | def __init__(self, filename, metadata): | 44 | def __init__(self, filename, metadata): |
39 | 45 | ||
40 | self.summary = self.getvar('SUMMARY', metadata) | 46 | self.summary = self.getvar('SUMMARY', metadata) |