diff options
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 09691d98cc..0620621d0b 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -245,7 +245,11 @@ class Cache(object): | |||
245 | BitBake Cache implementation | 245 | BitBake Cache implementation |
246 | """ | 246 | """ |
247 | 247 | ||
248 | def __init__(self, data): | 248 | def __init__(self, data, caches_array): |
249 | # Pass caches_array information into Cache Constructor | ||
250 | # It will be used in later for deciding whether we | ||
251 | # need extra cache file dump/load support | ||
252 | self.caches_array = caches_array | ||
249 | self.cachedir = bb.data.getVar("CACHE", data, True) | 253 | self.cachedir = bb.data.getVar("CACHE", data, True) |
250 | self.clean = set() | 254 | self.clean = set() |
251 | self.checked = set() | 255 | self.checked = set() |
@@ -360,7 +364,7 @@ class Cache(object): | |||
360 | return bb_data[virtual] | 364 | return bb_data[virtual] |
361 | 365 | ||
362 | @classmethod | 366 | @classmethod |
363 | def parse(cls, filename, appends, configdata): | 367 | def parse(cls, filename, appends, configdata, caches_array): |
364 | """Parse the specified filename, returning the recipe information""" | 368 | """Parse the specified filename, returning the recipe information""" |
365 | infos = [] | 369 | infos = [] |
366 | datastores = cls.load_bbfile(filename, appends, configdata) | 370 | datastores = cls.load_bbfile(filename, appends, configdata) |
@@ -393,7 +397,7 @@ class Cache(object): | |||
393 | infos.append((virtualfn, self.depends_cache[virtualfn])) | 397 | infos.append((virtualfn, self.depends_cache[virtualfn])) |
394 | else: | 398 | else: |
395 | logger.debug(1, "Parsing %s", filename) | 399 | logger.debug(1, "Parsing %s", filename) |
396 | return self.parse(filename, appends, configdata) | 400 | return self.parse(filename, appends, configdata, self.caches_array) |
397 | 401 | ||
398 | return cached, infos | 402 | return cached, infos |
399 | 403 | ||
@@ -623,8 +627,9 @@ class CacheData(object): | |||
623 | The data structures we compile from the cached data | 627 | The data structures we compile from the cached data |
624 | """ | 628 | """ |
625 | 629 | ||
626 | def __init__(self): | 630 | def __init__(self, caches_array): |
627 | CoreRecipeInfo.init_cacheData(self) | 631 | self.caches_array = caches_array |
632 | CoreRecipeInfo.init_cacheData(self) | ||
628 | # Direct cache variables | 633 | # Direct cache variables |
629 | self.task_queues = {} | 634 | self.task_queues = {} |
630 | self.preferred = {} | 635 | self.preferred = {} |