summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index ece88fce93..4f930ee840 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1185,15 +1185,21 @@ class CookerParser(object):
1185 multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, args=(self.cooker.configuration.data, ), exitpriority=1) 1185 multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, args=(self.cooker.configuration.data, ), exitpriority=1)
1186 parse_file.cfg = cfg 1186 parse_file.cfg = cfg
1187 1187
1188 bb.event.fire(bb.event.ParseStarted(self.toparse), self.cfgdata) 1188 self.results = self.load_cached()
1189 1189
1190 self.pool = multiprocessing.Pool(self.num_processes, init, [self.cfgdata]) 1190 if self.toparse:
1191 parsed = self.pool.imap(parse_file, self.willparse) 1191 bb.event.fire(bb.event.ParseStarted(self.toparse), self.cfgdata)
1192 self.pool.close()
1193 1192
1194 self.results = itertools.chain(self.load_cached(), parsed) 1193 self.pool = multiprocessing.Pool(self.num_processes, init, [self.cfgdata])
1194 parsed = self.pool.imap(parse_file, self.willparse)
1195 self.pool.close()
1196
1197 self.results = itertools.chain(self.results, parsed)
1195 1198
1196 def shutdown(self, clean=True): 1199 def shutdown(self, clean=True):
1200 if not self.toparse:
1201 return
1202
1197 if clean: 1203 if clean:
1198 event = bb.event.ParseCompleted(self.cached, self.parsed, 1204 event = bb.event.ParseCompleted(self.cached, self.parsed,
1199 self.skipped, self.masked, 1205 self.skipped, self.masked,