diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-22 10:21:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 12:54:17 +0100 |
commit | e51d542e78b70c2f854bd8b14b24dfd3f43a5ff4 (patch) | |
tree | 5e8a2a9cfe460d0bb797d6df065c5b9fff8dbab4 /bitbake/bin | |
parent | 72e0b43e0149ba63936aae69bc6028e997f7df12 (diff) | |
download | ast2050-yocto-poky-e51d542e78b70c2f854bd8b14b24dfd3f43a5ff4.zip ast2050-yocto-poky-e51d542e78b70c2f854bd8b14b24dfd3f43a5ff4.tar.gz |
bitbake|cooker: save a copy of the environment when BitBake is started
Create a data store in the cooker containing the values of the environment
from when BitBake is launched such that child processes can replicate
(and/or use values from) the host environment, rather than the cleaned up
environment that the main BitBake process uses.
(Bitbake rev: 54c7206165c0e7cfe5f7b243c80461baf5e7dfb1)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 8d6fef7..5398cf1 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -197,6 +197,9 @@ Default BBFILES are the .bb files in the current directory.""") handler = bb.event.LogHandler() logger.addHandler(handler) + # Before we start modifying the environment we should take a pristine + # copy for possible later use + initialenv = os.environ.copy() # Clear away any spurious environment variables. But don't wipe the # environment totally. This is necessary to ensure the correct operation # of the UIs (e.g. for DISPLAY, etc.) @@ -207,7 +210,7 @@ Default BBFILES are the .bb files in the current directory.""") server.initServer() idle = server.getServerIdleCB() - cooker = bb.cooker.BBCooker(configuration, idle) + cooker = bb.cooker.BBCooker(configuration, idle, initialenv) cooker.parseCommandLine() server.addcooker(cooker) |