diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-11 16:37:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-17 08:52:28 +0000 |
commit | 878de40a501089048cffdc867b2ae1ad8a2ec9e5 (patch) | |
tree | ed48deb9e5f2d056d0b0c6df8d0109e0bbd40a97 /bitbake/lib/bb/cooker.py | |
parent | 2946c56b233370ac4b151558079f2fc676157bad (diff) | |
download | poky-878de40a501089048cffdc867b2ae1ad8a2ec9e5.tar.gz |
bitbake: siggen: Add dummy dataCaches from task context/datastore
One of the challenges in maintaining the code is that it sometimes uses
a datacaches structure and sometimes a datastore. Rather than continue
the current dual API madness, have the worker contexts create a dummy
datacaches structure with the entries we need. Whilst this does need to
be kept in sync with the real structure, that doesn't change and this
allows the code to be simplified.
With this new approach, we can unify the stamps dependency code again.
(Bitbake rev: c6d325fc9b53e9d588ab273ee3c2a99a70fba42c)
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 728ef09675..ac7ac20c04 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1448,6 +1448,8 @@ class BBCooker: | |||
1448 | self.recipecaches[mc].rundeps[fn] = defaultdict(list) | 1448 | self.recipecaches[mc].rundeps[fn] = defaultdict(list) |
1449 | self.recipecaches[mc].runrecs[fn] = defaultdict(list) | 1449 | self.recipecaches[mc].runrecs[fn] = defaultdict(list) |
1450 | 1450 | ||
1451 | bb.parse.siggen.setup_datacache(self.recipecaches) | ||
1452 | |||
1451 | # Invalidate task for target if force mode active | 1453 | # Invalidate task for target if force mode active |
1452 | if self.configuration.force: | 1454 | if self.configuration.force: |
1453 | logger.verbose("Invalidate task %s, %s", task, fn) | 1455 | logger.verbose("Invalidate task %s, %s", task, fn) |