diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/build.py | 10 | ||||
-rw-r--r-- | bitbake/lib/bb/siggen.py | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 85af42c684..8ff7fb2931 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -491,9 +491,11 @@ def stamp_cleanmask_internal(taskname, d, file_name): | |||
491 | extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or "" | 491 | extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or "" |
492 | 492 | ||
493 | if not stamp: | 493 | if not stamp: |
494 | return | 494 | return [] |
495 | |||
496 | cleanmask = bb.parse.siggen.stampcleanmask(stamp, file_name, taskname, extrainfo) | ||
495 | 497 | ||
496 | return bb.parse.siggen.stampcleanmask(stamp, file_name, taskname, extrainfo) | 498 | return [cleanmask, cleanmask.replace(taskflagname, taskflagname + "_setscene")] |
497 | 499 | ||
498 | def make_stamp(task, d, file_name = None): | 500 | def make_stamp(task, d, file_name = None): |
499 | """ | 501 | """ |
@@ -501,8 +503,8 @@ def make_stamp(task, d, file_name = None): | |||
501 | (d can be a data dict or dataCache) | 503 | (d can be a data dict or dataCache) |
502 | """ | 504 | """ |
503 | cleanmask = stamp_cleanmask_internal(task, d, file_name) | 505 | cleanmask = stamp_cleanmask_internal(task, d, file_name) |
504 | if cleanmask: | 506 | for mask in cleanmask: |
505 | bb.utils.remove(cleanmask) | 507 | bb.utils.remove(mask) |
506 | 508 | ||
507 | stamp = stamp_internal(task, d, file_name) | 509 | stamp = stamp_internal(task, d, file_name) |
508 | # Remove the file and recreate to force timestamp | 510 | # Remove the file and recreate to force timestamp |
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index ff70d4ff4f..ba149402bf 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -49,7 +49,7 @@ class SignatureGenerator(object): | |||
49 | return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.') | 49 | return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.') |
50 | 50 | ||
51 | def stampcleanmask(self, stampbase, file_name, taskname, extrainfo): | 51 | def stampcleanmask(self, stampbase, file_name, taskname, extrainfo): |
52 | return ("%s.%s*.%s" % (stampbase, taskname, extrainfo)).rstrip('.') | 52 | return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.') |
53 | 53 | ||
54 | def dump_sigtask(self, fn, task, stampbase, runtime): | 54 | def dump_sigtask(self, fn, task, stampbase, runtime): |
55 | return | 55 | return |
@@ -276,7 +276,6 @@ class SignatureGeneratorBasicHash(SignatureGeneratorBasic): | |||
276 | k = fn + "." + taskname | 276 | k = fn + "." + taskname |
277 | if clean: | 277 | if clean: |
278 | h = "*" | 278 | h = "*" |
279 | taskname = taskname + "*" | ||
280 | elif k in self.taskhash: | 279 | elif k in self.taskhash: |
281 | h = self.taskhash[k] | 280 | h = self.taskhash[k] |
282 | else: | 281 | else: |