mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user