From 86b6b093374c37aeca87cdc36fc56440919d9458 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 24 Nov 2010 16:25:28 -0600 Subject: poky-init-build-env: Breakup the environment script Break up the scripts/poky-env-internal into two parts: 1) Chunk that is sourced and sets up the environment 2) Chunk that is executed and configures the build directory OEROOT configuration was moved into the initial poky-init-build-env script. Signed-off-by: Mark Hatle --- poky-init-build-env | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'poky-init-build-env') 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 elif [ "x$BASH_SOURCE" = "x" ]; then echo "Error: You are not running a Bash shell. Please use Bash or add support for your shell to the init scripts" else - . `dirname $BASH_SOURCE`/scripts/poky-env-internal + OEROOT="`dirname $BASH_SOURCE`" + OEROOT=`readlink -f "$OEROOT"` + export OEROOT + . $OEROOT/scripts/poky-env-internal + $OEROOT/scripts/poky-setup-builddir + unset OEROOT + [ -n "$BUILDDIR" ] && cd $BUILDDIR fi -- cgit 1.2.3-korg