summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/siggen.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-01 22:07:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-08 10:49:53 +0000
commitc14d8b9b6bd3a6fa4bae93c65425aaa936336546 (patch)
tree5200099abf40455dd7f203e2a9a0c1b37d334c1f /bitbake/lib/bb/siggen.py
parent8a15a09b59dae084ebba4ddd50f82033e3d0cf96 (diff)
downloadpoky-c14d8b9b6bd3a6fa4bae93c65425aaa936336546.tar.gz
bitbake: cache/siggen: Simplify passing basehash data into the cache
The basehash data is really internal bitbake data and passing an object directly is more efficient than creating and then extracting variables. This will match the format of other data we may optionally wish to store in the cache so more to the more efficient method. Nothing I can see is using this data today (and nothing should be). (Bitbake rev: e621093a1bf37cd75ede3fb77ab6845556870fc7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r--bitbake/lib/bb/siggen.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 72b906c153..34b71d596a 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -247,8 +247,11 @@ class SignatureGeneratorBasic(SignatureGenerator):
247 #for task in self.taskdeps[fn]: 247 #for task in self.taskdeps[fn]:
248 # self.dump_sigtask(fn, task, d.getVar("STAMP"), False) 248 # self.dump_sigtask(fn, task, d.getVar("STAMP"), False)
249 249
250 basehashes = {}
250 for task in taskdeps: 251 for task in taskdeps:
251 d.setVar("BB_BASEHASH:task-%s" % task, self.basehash[fn + ":" + task]) 252 basehashes[task] = self.basehash[fn + ":" + task]
253
254 d.setVar("__siggen_basehashes", basehashes)
252 255
253 def postparsing_clean_cache(self): 256 def postparsing_clean_cache(self):
254 # 257 #