diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-09 17:12:31 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-17 08:52:28 +0000 |
| commit | 4754b1021ebdc8272b324bb8f2ffff03c8719233 (patch) | |
| tree | 43684b927467b2f8a831baa0be175a54e94a2c63 | |
| parent | 46fd76aa07bd431f0ba73bdafeb7bf5aa31cef25 (diff) | |
| download | poky-4754b1021ebdc8272b324bb8f2ffff03c8719233.tar.gz | |
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>
| -rw-r--r-- | bitbake/lib/bb/runqueue.py | 2 | ||||
| -rw-r--r-- | bitbake/lib/bb/siggen.py | 3 |
2 files changed, 5 insertions, 0 deletions
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: | |||
| 651 | # Nothing to do | 651 | # Nothing to do |
| 652 | return 0 | 652 | return 0 |
| 653 | 653 | ||
| 654 | bb.parse.siggen.setup_datacache(self.dataCaches) | ||
| 655 | |||
| 654 | self.init_progress_reporter.start() | 656 | self.init_progress_reporter.start() |
| 655 | self.init_progress_reporter.next_stage() | 657 | self.init_progress_reporter.next_stage() |
| 656 | 658 | ||
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): | |||
| 70 | def postparsing_clean_cache(self): | 70 | def postparsing_clean_cache(self): |
| 71 | return | 71 | return |
| 72 | 72 | ||
| 73 | def setup_datacache(self, datacaches): | ||
| 74 | self.datacaches = datacaches | ||
| 75 | |||
| 73 | def get_unihash(self, tid): | 76 | def get_unihash(self, tid): |
| 74 | return self.taskhash[tid] | 77 | return self.taskhash[tid] |
| 75 | 78 | ||
