summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-31 14:19:22 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-31 14:49:14 +0100
commit9897b81e56eae97dea11b9489a3b691b8fc86441 (patch)
tree78b9e73fd6c8d13b797b54cb3c3d885d9b4ca7eb /bitbake/lib/bb/cooker.py
parent332c33af188c14dd0051d8a45fe0ad680611db69 (diff)
downloadpoky-9897b81e56eae97dea11b9489a3b691b8fc86441.tar.gz
bitbake/codeparser: Implement persistent cache
For a given input to this code, the output doesn't change to implement a persistent cache of the data to speed up parsing. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index dcdcb7d443..ea33693ddb 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -546,6 +546,7 @@ class BBCooker:
546 546
547 if bb.data.getVar("BB_WORKERCONTEXT", self.configuration.data) is None: 547 if bb.data.getVar("BB_WORKERCONTEXT", self.configuration.data) is None:
548 bb.fetch.fetcher_init(self.configuration.data) 548 bb.fetch.fetcher_init(self.configuration.data)
549 bb.codeparser.parser_cache_init(self.configuration.data)
549 550
550 bb.event.fire(bb.event.ConfigParsed(), self.configuration.data) 551 bb.event.fire(bb.event.ConfigParsed(), self.configuration.data)
551 552
@@ -1011,6 +1012,7 @@ class CookerParser:
1011 1012
1012 if self.pointer >= self.total: 1013 if self.pointer >= self.total:
1013 cooker.bb_cache.sync() 1014 cooker.bb_cache.sync()
1015 bb.codeparser.parser_cache_save(cooker.configuration.data)
1014 if self.error > 0: 1016 if self.error > 0:
1015 raise ParsingErrorsFound 1017 raise ParsingErrorsFound
1016 return False 1018 return False