diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-26 14:39:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-30 17:23:35 +0100 |
commit | a73cbe649af5e988eddb4a35b81011cb482d7480 (patch) | |
tree | 37c60c95e53cb261abc06aa441e9bb0b75768d0e /bitbake/lib | |
parent | 9254d537aad4b27e359446e11d606b21d9052f42 (diff) | |
download | poky-a73cbe649af5e988eddb4a35b81011cb482d7480.tar.gz |
bitbake: siggen: Remove full path from unitaskhashes keys
The full paths make the cache useless in the sdk. They also bloat the
cache size. They're for human debugging benefit only so compromise and
reduce this to the filename.
(Bitbake rev: 3b275c4083eae1d3781f0862919af9de83932b0f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 90f0926f25..a4bb1ff7fb 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -386,7 +386,7 @@ class SignatureGeneratorUniHashMixIn(object): | |||
386 | def __get_task_unihash_key(self, tid): | 386 | def __get_task_unihash_key(self, tid): |
387 | # TODO: The key only *needs* to be the taskhash, the tid is just | 387 | # TODO: The key only *needs* to be the taskhash, the tid is just |
388 | # convenient | 388 | # convenient |
389 | return '%s:%s' % (tid, self.taskhash[tid]) | 389 | return '%s:%s' % (tid.rsplit("/", 1)[1], self.taskhash[tid]) |
390 | 390 | ||
391 | def get_stampfile_hash(self, tid): | 391 | def get_stampfile_hash(self, tid): |
392 | if tid in self.taskhash: | 392 | if tid in self.taskhash: |
@@ -457,7 +457,7 @@ class SignatureGeneratorUniHashMixIn(object): | |||
457 | tempdir = d.getVar('T') | 457 | tempdir = d.getVar('T') |
458 | fn = d.getVar('BB_FILENAME') | 458 | fn = d.getVar('BB_FILENAME') |
459 | tid = fn + ':do_' + task | 459 | tid = fn + ':do_' + task |
460 | key = tid + ':' + taskhash | 460 | key = tid.rsplit("/", 1)[1] + ':' + taskhash |
461 | 461 | ||
462 | if self.setscenetasks and tid not in self.setscenetasks: | 462 | if self.setscenetasks and tid not in self.setscenetasks: |
463 | return | 463 | return |