summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-01-04 17:34:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-24 15:54:50 +0000
commit920c402342bd490cd94b365c3e151de735dec0d6 (patch)
tree1d0805bd0f4c937eb1a5fb3ae9c4290fc62dda1a /bitbake
parent6d261a50bac760b55e33c303e9f3f2214338eb4f (diff)
downloadast2050-yocto-poky-920c402342bd490cd94b365c3e151de735dec0d6.zip
ast2050-yocto-poky-920c402342bd490cd94b365c3e151de735dec0d6.tar.gz
bitbake/cache: store a list of inherited files in the cache
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cache.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 7ea04ac..599f15c 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),
)
@@ -572,6 +574,7 @@ class CacheData(object):
self.tasks = {}
self.basetaskhash = {}
self.hashfn = {}
+ self.inherits = {}
# Indirect Cache variables (set elsewhere)
self.ignored_dependencies = []
@@ -630,3 +633,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
OpenPOWER on IntegriCloud