summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 12:58:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 23:47:00 +0100
commit218e4b6418992588312b8ef5949b84ef43263d1a (patch)
treef3f847260ad37f595e1b7e5c35e3acf4365226e6
parentec60459fe2ba16966544eebff43b061abb7ed3ba (diff)
downloadbitbake-contrib-218e4b6418992588312b8ef5949b84ef43263d1a.zip
bitbake-contrib-218e4b6418992588312b8ef5949b84ef43263d1a.tar.gz
bitbake-contrib-218e4b6418992588312b8ef5949b84ef43263d1a.tar.bz2
cooker: Ignore common bitbake files for the parse cache invalidation
Writes to the cookerdaemon log and/or the lockfile were meaning the parser cache was always being invalidated and reparsed. This is unnecessary so spot accesses to these two common cases and ignore the files from a reparse perspective. This doesn't remove many sources of reparse but does improve several common cases. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index b3d6cd9..db034b9 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -263,6 +263,9 @@ class BBCooker:
self.parsecache_valid = False
bb.parse.clear_cache()
return
+ if event.pathname.endswith("bitbake-cookerdaemon.log") \
+ or event.pathname.endswith("bitbake.lock"):
+ return
if not event.pathname in self.inotify_modified_files:
self.inotify_modified_files.append(event.pathname)
self.parsecache_valid = False