diff options
author | Richard Purdie <richard@openedhand.com> | 2008-09-30 20:57:18 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-09-30 20:57:18 +0000 |
commit | 2e182847e4a780c58c5b8046eb98f7f6c8970ea1 (patch) | |
tree | dc3ccf060b2b04c8af29c75607260052bc92673b /bitbake/bin | |
parent | 221ac2b25f544a500869667d8f95c6c12c80db1a (diff) | |
download | poky-2e182847e4a780c58c5b8046eb98f7f6c8970ea1.tar.gz |
bitbake/bitbake-dev: Allow much better control of which variable influence bitbake from the environment
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5347 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index e262d0b9b4..dc35152d57 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -113,6 +113,16 @@ Default BBFILES are the .bb files in the current directory.""" ) | |||
113 | 113 | ||
114 | cooker = bb.cooker.BBCooker(configuration) | 114 | cooker = bb.cooker.BBCooker(configuration) |
115 | 115 | ||
116 | # Optionally clean up the environment | ||
117 | if 'BB_PRESERVE_ENV' not in os.environ: | ||
118 | if 'BB_ENV_WHITELIST' in os.environ: | ||
119 | good_vars = os.environ['BB_ENV_WHITELIST'].split() | ||
120 | else: | ||
121 | good_vars = bb.utils.preserved_envvars_list() | ||
122 | if 'BB_ENV_EXTRAWHITE' in os.environ: | ||
123 | good_vars.extend(os.environ['BB_ENV_EXTRAWHITE'].split()) | ||
124 | bb.utils.filter_environment(good_vars) | ||
125 | |||
116 | cooker.parseConfiguration() | 126 | cooker.parseConfiguration() |
117 | 127 | ||
118 | if configuration.profile: | 128 | if configuration.profile: |