diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c07d19cfae..2e8256101a 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -589,8 +589,8 @@ def preserved_envvars(): | |||
589 | v = [ | 589 | v = [ |
590 | 'BBPATH', | 590 | 'BBPATH', |
591 | 'BB_PRESERVE_ENV', | 591 | 'BB_PRESERVE_ENV', |
592 | 'BB_ENV_WHITELIST', | 592 | 'BB_ENV_PASSTHROUGH', |
593 | 'BB_ENV_EXTRAWHITE', | 593 | 'BB_ENV_PASSTHROUGH_ADDITIONS', |
594 | ] | 594 | ] |
595 | return v + preserved_envvars_exported() | 595 | return v + preserved_envvars_exported() |
596 | 596 | ||
@@ -621,21 +621,21 @@ def filter_environment(good_vars): | |||
621 | 621 | ||
622 | def approved_variables(): | 622 | def approved_variables(): |
623 | """ | 623 | """ |
624 | Determine and return the list of whitelisted variables which are approved | 624 | Determine and return the list of variables which are approved |
625 | to remain in the environment. | 625 | to remain in the environment. |
626 | """ | 626 | """ |
627 | if 'BB_PRESERVE_ENV' in os.environ: | 627 | if 'BB_PRESERVE_ENV' in os.environ: |
628 | return os.environ.keys() | 628 | return os.environ.keys() |
629 | approved = [] | 629 | approved = [] |
630 | if 'BB_ENV_WHITELIST' in os.environ: | 630 | if 'BB_ENV_PASSTHROUGH' in os.environ: |
631 | approved = os.environ['BB_ENV_WHITELIST'].split() | 631 | approved = os.environ['BB_ENV_PASSTHROUGH'].split() |
632 | approved.extend(['BB_ENV_WHITELIST']) | 632 | approved.extend(['BB_ENV_PASSTHROUGH']) |
633 | else: | 633 | else: |
634 | approved = preserved_envvars() | 634 | approved = preserved_envvars() |
635 | if 'BB_ENV_EXTRAWHITE' in os.environ: | 635 | if 'BB_ENV_PASSTHROUGH_ADDITIONS' in os.environ: |
636 | approved.extend(os.environ['BB_ENV_EXTRAWHITE'].split()) | 636 | approved.extend(os.environ['BB_ENV_PASSTHROUGH_ADDITIONS'].split()) |
637 | if 'BB_ENV_EXTRAWHITE' not in approved: | 637 | if 'BB_ENV_PASSTHROUGH_ADDITIONS' not in approved: |
638 | approved.extend(['BB_ENV_EXTRAWHITE']) | 638 | approved.extend(['BB_ENV_PASSTHROUGH_ADDITIONS']) |
639 | return approved | 639 | return approved |
640 | 640 | ||
641 | def clean_environment(): | 641 | def clean_environment(): |