diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-28 17:39:09 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-09 13:16:14 +0000 |
commit | 0ba9a9fffee966ec912eec5fd52c468338560e6a (patch) | |
tree | 667079024d685b4f7ed1be59d3f23b7e00e97b2b /bitbake/bin/bitbake-runtask | |
parent | 39dd60462c6d1e87f7c4105e1a3913e0aa54dba0 (diff) | |
download | poky-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-x | bitbake/bin/bitbake-runtask | 3 |
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. | |||
100 | cooker.bb_cache.setData(fn, buildfile, the_data) | 100 | cooker.bb_cache.setData(fn, buildfile, the_data) |
101 | cooker.bb_cache.handle_data(fn, cooker.status) | 101 | cooker.bb_cache.handle_data(fn, cooker.status) |
102 | 102 | ||
103 | exportlist = bb.utils.preserved_envvars_export_list() | ||
104 | bb.utils.filter_environment(exportlist) | ||
105 | |||
103 | if taskname.endswith("_setscene"): | 106 | if taskname.endswith("_setscene"): |
104 | the_data.setVarFlag(taskname, "quieterrors", "1") | 107 | the_data.setVarFlag(taskname, "quieterrors", "1") |
105 | 108 | ||