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-27 13:32:23 +0100 |
commit | 3b275c4083eae1d3781f0862919af9de83932b0f (patch) | |
tree | ddbd1b9fb91c248ad10c62d6117ad765fa3c606e | |
parent | cd6b89230823707c3c9bb9e6883bf5a971916581 (diff) | |
download | bitbake-3b275c4083eae1d3781f0862919af9de83932b0f.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/siggen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index 90f0926f2..a4bb1ff7f 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -386,7 +386,7 @@ class SignatureGeneratorUniHashMixIn(object): def __get_task_unihash_key(self, tid): # TODO: The key only *needs* to be the taskhash, the tid is just # convenient - return '%s:%s' % (tid, self.taskhash[tid]) + return '%s:%s' % (tid.rsplit("/", 1)[1], self.taskhash[tid]) def get_stampfile_hash(self, tid): if tid in self.taskhash: @@ -457,7 +457,7 @@ class SignatureGeneratorUniHashMixIn(object): tempdir = d.getVar('T') fn = d.getVar('BB_FILENAME') tid = fn + ':do_' + task - key = tid + ':' + taskhash + key = tid.rsplit("/", 1)[1] + ':' + taskhash if self.setscenetasks and tid not in self.setscenetasks: return |