summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-16 16:37:29 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-19 22:36:25 +0100
commitb6bfe1420517aa5aa190e17dca40ea70f09effd9 (patch)
tree2591a26f18290e8d929517df71f24645394c57fb /bitbake/lib/bb/cooker.py
parenta45e1d54e19d4cd728e90df929b212e41ef70d4b (diff)
downloadopenembedded-core-b6bfe1420517aa5aa190e17dca40ea70f09effd9.tar.gz
openembedded-core-b6bfe1420517aa5aa190e17dca40ea70f09effd9.tar.bz2
openembedded-core-b6bfe1420517aa5aa190e17dca40ea70f09effd9.zip
bitbake: Switch to use subprocess for forking tasks and FAKEROOTENV to run shell and python under a fakeroot environment
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index a1620b0162..3a25956625 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -70,12 +70,16 @@ class BBCooker:
self.cache = None
self.bb_cache = None
- self.server = server.BitBakeServer(self)
+ if server:
+ self.server = server.BitBakeServer(self)
self.configuration = configuration
self.configuration.data = bb.data.init()
+ if not server:
+ bb.data.setVar("BB_WORKERCONTEXT", "1", self.configuration.data)
+
bb.data.inheritFromOS(self.configuration.data)
self.parseConfigurationFiles(self.configuration.file)
@@ -544,7 +548,6 @@ class BBCooker:
bb.event.fire(bb.event.ConfigParsed(), self.configuration.data)
-
except IOError as e:
bb.msg.fatal(bb.msg.domain.Parsing, "Error when parsing %s: %s" % (files, str(e)))
except bb.parse.ParseError as details: