bitbake: siggen: Directly store datacaches reference

It is becomming clear the siggen needs access to our cache data but we
can't always obtain it in the contexts we need to. Add it directly,
meaning over time we should be able to simplify the APIs and stop
convoluting new ones!

(Bitbake rev: 6b213590ed0e77683cf7fbce6bbe9605ddecf3d3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-12-09 17:12:31 +00:00
parent 46fd76aa07
commit 4754b1021e
2 changed files with 5 additions and 0 deletions

View File

@@ -651,6 +651,8 @@ class RunQueueData:
# Nothing to do
return 0
bb.parse.siggen.setup_datacache(self.dataCaches)
self.init_progress_reporter.start()
self.init_progress_reporter.next_stage()

View File

@@ -70,6 +70,9 @@ class SignatureGenerator(object):
def postparsing_clean_cache(self):
return
def setup_datacache(self, datacaches):
self.datacaches = datacaches
def get_unihash(self, tid):
return self.taskhash[tid]