summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-runtask
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-11-28 17:39:09 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-09 13:16:14 +0000
commit0ba9a9fffee966ec912eec5fd52c468338560e6a (patch)
tree667079024d685b4f7ed1be59d3f23b7e00e97b2b /bitbake/bin/bitbake-runtask
parent39dd60462c6d1e87f7c4105e1a3913e0aa54dba0 (diff)
downloadpoky-0ba9a9fffee966ec912eec5fd52c468338560e6a.tar.gz
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>
Diffstat (limited to 'bitbake/bin/bitbake-runtask')
-rwxr-xr-xbitbake/bin/bitbake-runtask3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-runtask b/bitbake/bin/bitbake-runtask
index 88101a5c0f..9079f5725b 100755
--- a/bitbake/bin/bitbake-runtask
+++ b/bitbake/bin/bitbake-runtask
@@ -100,6 +100,9 @@ the_data = cooker.bb_cache.loadDataFull(fn, cooker.get_file_appends(fn), cooker.
100cooker.bb_cache.setData(fn, buildfile, the_data) 100cooker.bb_cache.setData(fn, buildfile, the_data)
101cooker.bb_cache.handle_data(fn, cooker.status) 101cooker.bb_cache.handle_data(fn, cooker.status)
102 102
103exportlist = bb.utils.preserved_envvars_export_list()
104bb.utils.filter_environment(exportlist)
105
103if taskname.endswith("_setscene"): 106if taskname.endswith("_setscene"):
104 the_data.setVarFlag(taskname, "quieterrors", "1") 107 the_data.setVarFlag(taskname, "quieterrors", "1")
105 108