summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-buildenv-internal11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 457763b794..85f82f1b31 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -95,9 +95,14 @@ if ! (test -d "$BITBAKEDIR"); then
95fi 95fi
96 96
97# Make sure our paths are at the beginning of $PATH 97# Make sure our paths are at the beginning of $PATH
98NEWPATHS="${OEROOT}/scripts:$BITBAKEDIR/bin:" 98for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do
99PATH=$NEWPATHS$(echo $PATH | sed -e "s|:$NEWPATHS|:|g" -e "s|^$NEWPATHS||") 99 # Remove any existences of $newpath from $PATH
100unset BITBAKEDIR NEWPATHS 100 PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\1#g;s#^:##")
101
102 # Add $newpath to $PATH
103 PATH="$newpath:$PATH"
104done
105unset BITBAKEDIR newpath
101 106
102# Used by the runqemu script 107# Used by the runqemu script
103export BUILDDIR 108export BUILDDIR