summaryrefslogtreecommitdiffstats
path: root/scripts/oe-buildenv-internal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-buildenv-internal')
-rwxr-xr-xscripts/oe-buildenv-internal26
1 files changed, 21 insertions, 5 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 85f82f1b31..354501ed4b 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -108,13 +108,29 @@ unset BITBAKEDIR newpath
108export BUILDDIR 108export BUILDDIR
109export PATH 109export PATH
110 110
111BB_ENV_EXTRAWHITE_OE="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy \ 111add_extrawhite() {
112 # If the current shell is zsh, then temporarily set it to emulate sh in this
113 # function so that the for and case statements below work as expected.
114 [ -z "$ZSH_NAME" ] || emulate -L sh
115
116 local extrawhite="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy \
112HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY \ 117HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY \
113all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY \ 118all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY \
114SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND \ 119SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND \
115SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR" 120SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR"
116 121
117echo "$BB_ENV_EXTRAWHITE" | grep -q "${BB_ENV_EXTRAWHITE_OE}" 122 local var
118if [ $? != 0 ]; then 123 for var in $extrawhite; do
119 export BB_ENV_EXTRAWHITE="${BB_ENV_EXTRAWHITE_OE} $BB_ENV_EXTRAWHITE" 124 case " $BB_ENV_EXTRAWHITE " in
120fi 125 *[[:blank:]]$var[[:blank:]]*)
126 ;;
127 *)
128 BB_ENV_EXTRAWHITE="${BB_ENV_EXTRAWHITE:+$BB_ENV_EXTRAWHITE }$var"
129 ;;
130 esac
131 done
132}
133
134add_extrawhite
135unset -f add_extrawhite
136export BB_ENV_EXTRAWHITE