diff options
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index a1182ef461..1f4174f77f 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1986,8 +1986,6 @@ class CookerParser(object): | |||
| 1986 | self.total = len(filelist) | 1986 | self.total = len(filelist) |
| 1987 | 1987 | ||
| 1988 | self.current = 0 | 1988 | self.current = 0 |
| 1989 | self.num_processes = int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or | ||
| 1990 | multiprocessing.cpu_count()) | ||
| 1991 | self.process_names = [] | 1989 | self.process_names = [] |
| 1992 | 1990 | ||
| 1993 | self.bb_cache = bb.cache.Cache(self.cfgdata, self.cfghash, cooker.caches_array) | 1991 | self.bb_cache = bb.cache.Cache(self.cfgdata, self.cfghash, cooker.caches_array) |
| @@ -2002,6 +2000,9 @@ class CookerParser(object): | |||
| 2002 | self.toparse = self.total - len(self.fromcache) | 2000 | self.toparse = self.total - len(self.fromcache) |
| 2003 | self.progress_chunk = max(self.toparse / 100, 1) | 2001 | self.progress_chunk = max(self.toparse / 100, 1) |
| 2004 | 2002 | ||
| 2003 | self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or | ||
| 2004 | multiprocessing.cpu_count()), len(self.willparse)) | ||
| 2005 | |||
| 2005 | self.start() | 2006 | self.start() |
| 2006 | self.haveshutdown = False | 2007 | self.haveshutdown = False |
| 2007 | 2008 | ||
