summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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