summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
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/lib/bb/cache.py
parent6d261a50bac760b55e33c303e9f3f2214338eb4f (diff)
downloadpoky-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/lib/bb/cache.py')
-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 7ea04ac1a5..599f15c00f 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -74,6 +74,7 @@ recipe_fields = (
74 'tasks', 74 'tasks',
75 'basetaskhashes', 75 'basetaskhashes',
76 'hashfilename', 76 'hashfilename',
77 'inherits',
77) 78)
78 79
79 80
@@ -164,6 +165,7 @@ class RecipeInfo(namedtuple('RecipeInfo', recipe_fields)):
164 rprovides_pkg = cls.pkgvar('RPROVIDES', packages, metadata), 165 rprovides_pkg = cls.pkgvar('RPROVIDES', packages, metadata),
165 rdepends_pkg = cls.pkgvar('RDEPENDS', packages, metadata), 166 rdepends_pkg = cls.pkgvar('RDEPENDS', packages, metadata),
166 rrecommends_pkg = cls.pkgvar('RRECOMMENDS', packages, metadata), 167 rrecommends_pkg = cls.pkgvar('RRECOMMENDS', packages, metadata),
168 inherits = cls.getvar('__inherit_cache', metadata),
167 ) 169 )
168 170
169 171
@@ -572,6 +574,7 @@ class CacheData(object):
572 self.tasks = {} 574 self.tasks = {}
573 self.basetaskhash = {} 575 self.basetaskhash = {}
574 self.hashfn = {} 576 self.hashfn = {}
577 self.inherits = {}
575 578
576 # Indirect Cache variables (set elsewhere) 579 # Indirect Cache variables (set elsewhere)
577 self.ignored_dependencies = [] 580 self.ignored_dependencies = []
@@ -630,3 +633,5 @@ class CacheData(object):
630 for task, taskhash in info.basetaskhashes.iteritems(): 633 for task, taskhash in info.basetaskhashes.iteritems():
631 identifier = '%s.%s' % (fn, task) 634 identifier = '%s.%s' % (fn, task)
632 self.basetaskhash[identifier] = taskhash 635 self.basetaskhash[identifier] = taskhash
636
637 self.inherits[fn] = info.inherits