mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user