diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-18 20:21:54 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:42 +0000 |
commit | 32ea7668712a50d8f8b67d5e4558039e5092a485 (patch) | |
tree | 2473f8b1aade6131c7a37fbad2cc4d23998a3a56 /bitbake/lib/bb/pysh | |
parent | 570bec37a898fb502d166a22f20bdb1da8c21c38 (diff) | |
download | poky-32ea7668712a50d8f8b67d5e4558039e5092a485.tar.gz |
Implement parallel parsing support
This utilizes python's multiprocessing module. The default number of threads
to be used is the same as the number of available processor cores, however,
you can manually set this with the BB_NUMBER_PARSE_THREADS variable.
(Bitbake rev: c7b3ec819549e51e438d293969e205883fee725f)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/pysh')
-rw-r--r-- | bitbake/lib/bb/pysh/pyshyacc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py index 8bb9927321..3d6f54a58c 100644 --- a/bitbake/lib/bb/pysh/pyshyacc.py +++ b/bitbake/lib/bb/pysh/pyshyacc.py | |||
@@ -648,6 +648,7 @@ def p_error(p): | |||
648 | try: | 648 | try: |
649 | import pyshtables | 649 | import pyshtables |
650 | except ImportError: | 650 | except ImportError: |
651 | import os | ||
651 | outputdir = os.path.dirname(__file__) | 652 | outputdir = os.path.dirname(__file__) |
652 | if not os.access(outputdir, os.W_OK): | 653 | if not os.access(outputdir, os.W_OK): |
653 | outputdir = '' | 654 | outputdir = '' |