summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/pysh/pyshyacc.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-18 20:21:54 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:42 +0000
commit32ea7668712a50d8f8b67d5e4558039e5092a485 (patch)
tree2473f8b1aade6131c7a37fbad2cc4d23998a3a56 /bitbake/lib/bb/pysh/pyshyacc.py
parent570bec37a898fb502d166a22f20bdb1da8c21c38 (diff)
downloadopenembedded-core-32ea7668712a50d8f8b67d5e4558039e5092a485.tar.gz
openembedded-core-32ea7668712a50d8f8b67d5e4558039e5092a485.tar.bz2
openembedded-core-32ea7668712a50d8f8b67d5e4558039e5092a485.tar.xz
openembedded-core-32ea7668712a50d8f8b67d5e4558039e5092a485.zip
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/pyshyacc.py')
-rw-r--r--bitbake/lib/bb/pysh/pyshyacc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py
index 8bb992732..3d6f54a58 100644
--- a/bitbake/lib/bb/pysh/pyshyacc.py
+++ b/bitbake/lib/bb/pysh/pyshyacc.py
@@ -648,6 +648,7 @@ def p_error(p):
try:
import pyshtables
except ImportError:
+ import os
outputdir = os.path.dirname(__file__)
if not os.access(outputdir, os.W_OK):
outputdir = ''