diff options
Diffstat (limited to 'scripts/oe-buildenv-internal')
-rwxr-xr-x | scripts/oe-buildenv-internal | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 485d4c52e1..f856e618aa 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -92,19 +92,20 @@ fi | |||
92 | PYTHONPATH=$BITBAKEDIR/lib:$PYTHONPATH | 92 | PYTHONPATH=$BITBAKEDIR/lib:$PYTHONPATH |
93 | export PYTHONPATH | 93 | export PYTHONPATH |
94 | 94 | ||
95 | # Remove any paths added by sourcing this script before | ||
96 | [ -n "$OE_ADDED_PATHS" ] && PATH=$(echo $PATH | sed -e "s#$OE_ADDED_PATHS##") || | ||
97 | PATH=$(echo $PATH | sed -e "s#$OEROOT/scripts:$BITBAKEDIR/bin:##") | ||
98 | |||
95 | # Make sure our paths are at the beginning of $PATH | 99 | # Make sure our paths are at the beginning of $PATH |
96 | for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do | 100 | OE_ADDED_PATHS="$OEROOT/scripts:$BITBAKEDIR/bin:" |
97 | # Remove any existences of $newpath from $PATH | 101 | PATH="$OE_ADDED_PATHS$PATH" |
98 | PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\2#g;s#^:##") | 102 | export OE_ADDED_PATHS |
99 | 103 | ||
100 | # Add $newpath to $PATH | 104 | # This is not needed anymore |
101 | PATH="$newpath:$PATH" | 105 | unset BITBAKEDIR |
102 | done | ||
103 | unset BITBAKEDIR newpath | ||
104 | 106 | ||
105 | # Used by the runqemu script | 107 | # Used by the runqemu script |
106 | export BUILDDIR | 108 | export BUILDDIR |
107 | export PATH | ||
108 | 109 | ||
109 | BB_ENV_PASSTHROUGH_ADDITIONS_OE="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy \ | 110 | BB_ENV_PASSTHROUGH_ADDITIONS_OE="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy \ |
110 | HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY \ | 111 | HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY \ |