diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-01 22:19:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-08 10:49:53 +0000 |
commit | 8fe5f307e2921e3ecf46e2b45f89fd1982680315 (patch) | |
tree | f2447d528e4058fa71c4fe2fe18c6f8d8a243735 /bitbake/lib/bb/cooker.py | |
parent | c14d8b9b6bd3a6fa4bae93c65425aaa936336546 (diff) | |
download | poky-8fe5f307e2921e3ecf46e2b45f89fd1982680315.tar.gz |
bitbake: siggen/cache: Optionally allow adding siggen hash data to the bitbake cache
Being able to track siggen hash construction data can be useful for cache
debugging. For now, add an extra cache class which contains this information.
It can be enabled in the same way as the hob data cache through a feature flag
to cooker. This allows us to experiment with the data without carrying larger
patches around and ultimately may allow use to have a hash mismatch debugging
mode that is more easily enabled.
(Bitbake rev: 0736a8a03da8b774fafbd28f746bef4705378049)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 5a5ba7fb70..4be95dd7fb 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -80,7 +80,7 @@ class SkippedPackage: | |||
80 | 80 | ||
81 | 81 | ||
82 | class CookerFeatures(object): | 82 | class CookerFeatures(object): |
83 | _feature_list = [HOB_EXTRA_CACHES, BASEDATASTORE_TRACKING, SEND_SANITYEVENTS] = list(range(3)) | 83 | _feature_list = [HOB_EXTRA_CACHES, BASEDATASTORE_TRACKING, SEND_SANITYEVENTS, RECIPE_SIGGEN_INFO] = list(range(4)) |
84 | 84 | ||
85 | def __init__(self): | 85 | def __init__(self): |
86 | self._features=set() | 86 | self._features=set() |
@@ -367,12 +367,12 @@ class BBCooker: | |||
367 | if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset: | 367 | if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset: |
368 | self.enableDataTracking() | 368 | self.enableDataTracking() |
369 | 369 | ||
370 | all_extra_cache_names = [] | 370 | caches_name_array = ['bb.cache:CoreRecipeInfo'] |
371 | # We hardcode all known cache types in a single place, here. | 371 | # We hardcode all known cache types in a single place, here. |
372 | if CookerFeatures.HOB_EXTRA_CACHES in self.featureset: | 372 | if CookerFeatures.HOB_EXTRA_CACHES in self.featureset: |
373 | all_extra_cache_names.append("bb.cache_extra:HobRecipeInfo") | 373 | caches_name_array.append("bb.cache_extra:HobRecipeInfo") |
374 | 374 | if CookerFeatures.RECIPE_SIGGEN_INFO in self.featureset: | |
375 | caches_name_array = ['bb.cache:CoreRecipeInfo'] + all_extra_cache_names | 375 | caches_name_array.append("bb.cache:SiggenRecipeInfo") |
376 | 376 | ||
377 | # At least CoreRecipeInfo will be loaded, so caches_array will never be empty! | 377 | # At least CoreRecipeInfo will be loaded, so caches_array will never be empty! |
378 | # This is the entry point, no further check needed! | 378 | # This is the entry point, no further check needed! |