diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/build.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index f4f897e41a..b2715fc530 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -854,6 +854,23 @@ def make_stamp(task, d, file_name = None): | |||
854 | file_name = d.getVar('BB_FILENAME') | 854 | file_name = d.getVar('BB_FILENAME') |
855 | bb.parse.siggen.dump_sigtask(file_name, task, stampbase, True) | 855 | bb.parse.siggen.dump_sigtask(file_name, task, stampbase, True) |
856 | 856 | ||
857 | def find_stale_stamps(task, d, file_name=None): | ||
858 | current = stamp_internal(task, d, file_name) | ||
859 | current2 = stamp_internal(task + "_setscene", d, file_name) | ||
860 | cleanmask = stamp_cleanmask_internal(task, d, file_name) | ||
861 | found = [] | ||
862 | for mask in cleanmask: | ||
863 | for name in glob.glob(mask): | ||
864 | if "sigdata" in name or "sigbasedata" in name: | ||
865 | continue | ||
866 | if name.endswith('.taint'): | ||
867 | continue | ||
868 | if name == current or name == current2: | ||
869 | continue | ||
870 | logger.debug2("Stampfile %s does not match %s or %s" % (name, current, current2)) | ||
871 | found.append(name) | ||
872 | return found | ||
873 | |||
857 | def del_stamp(task, d, file_name = None): | 874 | def del_stamp(task, d, file_name = None): |
858 | """ | 875 | """ |
859 | Removes a stamp for a given task | 876 | Removes a stamp for a given task |