aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-05-22 08:35:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-11 13:28:08 +0100
commit2ea1e6720c66841baa5e01c523c86f8ecb03eb7d (patch)
treed074453fd78e3f299031f5d129cd96595a34e3f0
parent2aaea2f72e0c37451e7c7851b3a32abd733b38e1 (diff)
downloadbitbake-2ea1e6720c66841baa5e01c523c86f8ecb03eb7d.tar.gz
bitbake: cooker: Rename __depends in all multiconfigs
The renaming of the __depends variable to __base_depends and file watches needs to occurs for all multiconfigs, not just the base config. Failing to do this for all multiconfigs will result in a huge increase in the size of the parsing cache (about 5x for a single mulitconfig) because all multiconfig caches will still depend on the base config files. This will also seen a similar jump in the amount of time required to load the parsing cache from memory, both because the cache is larger and because of explosion of additional existence checks that must be done for the base files. [YOCTO #13359] Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 5bb7de943..8dac7934f 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -391,8 +391,9 @@ class BBCooker:
if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset:
self.disableDataTracking()
- self.data.renameVar("__depends", "__base_depends")
- self.add_filewatch(self.data.getVar("__base_depends", False), self.configwatcher)
+ for mc in self.databuilder.mcdata.values():
+ mc.renameVar("__depends", "__base_depends")
+ self.add_filewatch(mc.getVar("__base_depends", False), self.configwatcher)
self.baseconfig_valid = True
self.parsecache_valid = False