[poky] [PATCH 01/13] bitbake/cache: store a list of inherited files in the cache
Joshua Lock
josh at linux.intel.com
Fri Feb 4 00:53:18 PST 2011
From: Joshua Lock <josh at linux.intel.com>
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
bitbake/lib/bb/cache.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index ff42a37..8480f89 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -74,6 +74,7 @@ recipe_fields = (
'tasks',
'basetaskhashes',
'hashfilename',
+ 'inherits',
)
@@ -164,6 +165,7 @@ class RecipeInfo(namedtuple('RecipeInfo', recipe_fields)):
rprovides_pkg = cls.pkgvar('RPROVIDES', packages, metadata),
rdepends_pkg = cls.pkgvar('RDEPENDS', packages, metadata),
rrecommends_pkg = cls.pkgvar('RRECOMMENDS', packages, metadata),
+ inherits = cls.getvar('__inherit_cache', metadata),
)
@@ -574,6 +576,7 @@ class CacheData(object):
self.tasks = {}
self.basetaskhash = {}
self.hashfn = {}
+ self.inherits = {}
"""
Indirect Cache variables
@@ -635,3 +638,5 @@ class CacheData(object):
for task, taskhash in info.basetaskhashes.iteritems():
identifier = '%s.%s' % (fn, task)
self.basetaskhash[identifier] = taskhash
+
+ self.inherits[fn] = info.inherits
--
1.7.4
More information about the poky
mailing list