diff options
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 8d6fef7b8b..5398cf122a 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -197,6 +197,9 @@ Default BBFILES are the .bb files in the current directory.""") | |||
197 | handler = bb.event.LogHandler() | 197 | handler = bb.event.LogHandler() |
198 | logger.addHandler(handler) | 198 | logger.addHandler(handler) |
199 | 199 | ||
200 | # Before we start modifying the environment we should take a pristine | ||
201 | # copy for possible later use | ||
202 | initialenv = os.environ.copy() | ||
200 | # Clear away any spurious environment variables. But don't wipe the | 203 | # Clear away any spurious environment variables. But don't wipe the |
201 | # environment totally. This is necessary to ensure the correct operation | 204 | # environment totally. This is necessary to ensure the correct operation |
202 | # of the UIs (e.g. for DISPLAY, etc.) | 205 | # of the UIs (e.g. for DISPLAY, etc.) |
@@ -207,7 +210,7 @@ Default BBFILES are the .bb files in the current directory.""") | |||
207 | server.initServer() | 210 | server.initServer() |
208 | idle = server.getServerIdleCB() | 211 | idle = server.getServerIdleCB() |
209 | 212 | ||
210 | cooker = bb.cooker.BBCooker(configuration, idle) | 213 | cooker = bb.cooker.BBCooker(configuration, idle, initialenv) |
211 | cooker.parseCommandLine() | 214 | cooker.parseCommandLine() |
212 | 215 | ||
213 | server.addcooker(cooker) | 216 | server.addcooker(cooker) |