summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 12:57:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-13 09:28:14 +0100
commita0f729d31d15d8314016d0e19e5e115b5761d535 (patch)
treeaf4d72d4546519ccca0087e9d8bd1329bc1e6dbe /bitbake/lib/bb/parse
parent019f518287bb00f7e7121289b4859661af201d89 (diff)
downloadpoky-a0f729d31d15d8314016d0e19e5e115b5761d535.tar.gz
bitbake: cooker: Improve inotify overflow handling
Add a proper function for clearing the mtime cache. Clean up the inotify event overflow case to err on the side of caution and clear any potentially now out of sync caches. (Bitbake rev: ec60459fe2ba16966544eebff43b061abb7ed3ba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py
index a2952ecc0f..2fc4002db5 100644
--- a/bitbake/lib/bb/parse/__init__.py
+++ b/bitbake/lib/bb/parse/__init__.py
@@ -84,6 +84,10 @@ def update_cache(f):
84 logger.debug(1, "Updating mtime cache for %s" % f) 84 logger.debug(1, "Updating mtime cache for %s" % f)
85 update_mtime(f) 85 update_mtime(f)
86 86
87def clear_cache():
88 global __mtime_cache
89 __mtime_cache = {}
90
87def mark_dependency(d, f): 91def mark_dependency(d, f):
88 if f.startswith('./'): 92 if f.startswith('./'):
89 f = "%s/%s" % (os.getcwd(), f[2:]) 93 f = "%s/%s" % (os.getcwd(), f[2:])