]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: cooker: Ignore common bitbake files for the parse cache invalidation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Aug 2017 11:58:39 +0000 (12:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Aug 2017 08:28:14 +0000 (09:28 +0100)
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>
bitbake/lib/bb/cooker.py

index b3d6cd9e34518520fff87fef4ab400c733f6133f..db034b9e832b3429d645569daf531e81bf1a39e3 100644 (file)
@@ -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