summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-02-13 15:37:07 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-21 23:37:26 +0000
commit8e5a8a2b532214f605eb56375e183b0bc7408797 (patch)
tree36e5c58afa0879f48f0d8e3957250f5b304856f4 /bitbake/lib/bb/utils.py
parent8a16bf5321a51f440b9b5dcc29bc498d1eb0bf28 (diff)
downloadpoky-8e5a8a2b532214f605eb56375e183b0bc7408797.tar.gz
bitbake: bitbake: Rename environment filtering variables
In line with the inclusive language migration defined at: https://wiki.yoctoproject.org/wiki/Inclusive_language rename: BB_ENV_WHITELIST -> BB_ENV_PASSTHROUGH BB_ENV_EXTRAWHITE -> BB_ENV_PASSTHROUGH_ADDITIONS (Bitbake rev: fe60627839d4280cf0117ed1afbfccdff1181b6a) (Bitbake rev: 87104b6a167188921da157c7dba45938849fb22a) Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py20
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
622def approved_variables(): 622def 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
641def clean_environment(): 641def clean_environment():