diff options
Diffstat (limited to 'poky-init-build-env')
-rwxr-xr-x | poky-init-build-env | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/poky-init-build-env b/poky-init-build-env index 075070370b..7af2172a45 100755 --- a/poky-init-build-env +++ b/poky-init-build-env | |||
@@ -24,6 +24,12 @@ if [ "x$0" = "x./poky-init-build-env" ]; then | |||
24 | elif [ "x$BASH_SOURCE" = "x" ]; then | 24 | elif [ "x$BASH_SOURCE" = "x" ]; then |
25 | echo "Error: You are not running a Bash shell. Please use Bash or add support for your shell to the init scripts" | 25 | echo "Error: You are not running a Bash shell. Please use Bash or add support for your shell to the init scripts" |
26 | else | 26 | else |
27 | . `dirname $BASH_SOURCE`/scripts/poky-env-internal | 27 | OEROOT="`dirname $BASH_SOURCE`" |
28 | OEROOT=`readlink -f "$OEROOT"` | ||
29 | export OEROOT | ||
30 | . $OEROOT/scripts/poky-env-internal | ||
31 | $OEROOT/scripts/poky-setup-builddir | ||
32 | unset OEROOT | ||
33 | [ -n "$BUILDDIR" ] && cd $BUILDDIR | ||
28 | fi | 34 | fi |
29 | 35 | ||