From 4754b1021ebdc8272b324bb8f2ffff03c8719233 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 9 Dec 2022 17:12:31 +0000 Subject: [PATCH] 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 --- bitbake/lib/bb/runqueue.py | 2 ++ bitbake/lib/bb/siggen.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 63cce8184f..991aa94f67 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -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() diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index cdf7d03a34..e57f1ffe69 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py @@ -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]