summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index b2f81c8a92..d671f56b50 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -496,10 +496,13 @@ def approved_variables():
496 approved = [] 496 approved = []
497 if 'BB_ENV_WHITELIST' in os.environ: 497 if 'BB_ENV_WHITELIST' in os.environ:
498 approved = os.environ['BB_ENV_WHITELIST'].split() 498 approved = os.environ['BB_ENV_WHITELIST'].split()
499 approved.extend(['BB_ENV_WHITELIST'])
499 else: 500 else:
500 approved = preserved_envvars() 501 approved = preserved_envvars()
501 if 'BB_ENV_EXTRAWHITE' in os.environ: 502 if 'BB_ENV_EXTRAWHITE' in os.environ:
502 approved.extend(os.environ['BB_ENV_EXTRAWHITE'].split()) 503 approved.extend(os.environ['BB_ENV_EXTRAWHITE'].split())
504 if 'BB_ENV_EXTRAWHITE' not in approved:
505 approved.extend(['BB_ENV_EXTRAWHITE'])
503 return approved 506 return approved
504 507
505def clean_environment(): 508def clean_environment():