summaryrefslogtreecommitdiffstats
path: root/bitbake
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-13 09:28:14 +0100
commit034bff2ca431b49b7ca9b1e7b7c214ef94b0eb34 (patch)
treec5495b3efe68cdba4fd770d645143e3bdc62aed1 /bitbake
parenta0f729d31d15d8314016d0e19e5e115b5761d535 (diff)
downloadpoky-034bff2ca431b49b7ca9b1e7b7c214ef94b0eb34.tar.gz
bitbake: 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. (Bitbake rev: 218e4b6418992588312b8ef5949b84ef43263d1a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index b3d6cd9e34..db034b9e83 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -263,6 +263,9 @@ class BBCooker:
263 self.parsecache_valid = False 263 self.parsecache_valid = False
264 bb.parse.clear_cache() 264 bb.parse.clear_cache()
265 return 265 return
266 if event.pathname.endswith("bitbake-cookerdaemon.log") \
267 or event.pathname.endswith("bitbake.lock"):
268 return
266 if not event.pathname in self.inotify_modified_files: 269 if not event.pathname in self.inotify_modified_files:
267 self.inotify_modified_files.append(event.pathname) 270 self.inotify_modified_files.append(event.pathname)
268 self.parsecache_valid = False 271 self.parsecache_valid = False