]> code.ossystems Code Review - openembedded-core.git/commit
bitbake: Overhaul environment handling
authorRichard Purdie <rpurdie@linux.intel.com>
Sun, 28 Nov 2010 17:39:09 +0000 (17:39 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 9 Dec 2010 13:16:14 +0000 (13:16 +0000)
commit0ba9a9fffee966ec912eec5fd52c468338560e6a
tree667079024d685b4f7ed1be59d3f23b7e00e97b2b
parent39dd60462c6d1e87f7c4105e1a3913e0aa54dba0
bitbake: Overhaul environment handling

Currently, anything whitelisted in the environment makes it into the worker
processes. This is undesireable and the worker environment should be as
clean as possible. This patch adapts bitbake sosme variables are loaded into
bitbake's datastore but not exported by default. Any variable can be exported
by setting its export flag.

Currently, this code only finalises the environment in he worker as doing so
in the server means variables are unavailable in the worker. If we switch
back to fork() calls instead of exec() this code will need revisting.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/bin/bitbake-runtask
bitbake/lib/bb/cooker.py
bitbake/lib/bb/data.py
bitbake/lib/bb/runqueue.py
bitbake/lib/bb/utils.py