[bitbake-devel] [PATCH 1/1] command: Add command to invalidate parse cache

Paul Eggleton paul.eggleton at linux.intel.com
Tue Sep 12 10:10:34 UTC 2017


If we make a change to the metadata within a tinfoil-using script
and then attempt to run tasks using build_targets(), the change won't
get noticed. Add an explicit command that will set the internal flag to
force reloading the cache and thus pick up the changes. This will be
used in OE by the devtool source extraction rework.

Part of the fix for [YOCTO #11198].

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
 lib/bb/command.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bb/command.py b/lib/bb/command.py
index 6c966e3..c3717ab 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -574,6 +574,9 @@ class CommandsSync:
         return DataStoreConnectionHandle(idx)
     parseRecipeFile.readonly = True
 
+    def invalidateParseCache(self, command, params):
+        command.cooker.parsecache_valid = False
+
 class CommandsAsync:
     """
     A class of asynchronous commands
-- 
2.9.5




More information about the bitbake-devel mailing list