summaryrefslogtreecommitdiffstats
path: root/poky-init-build-env
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-11-24 16:25:28 -0600
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-20 23:00:25 +0000
commit86b6b093374c37aeca87cdc36fc56440919d9458 (patch)
tree5380badad53264eaa2d4ff07f178bf92c3679cb9 /poky-init-build-env
parent9975c00c1a6a9ae1c39678dec0986f4c62418c96 (diff)
downloadpoky-86b6b093374c37aeca87cdc36fc56440919d9458.tar.gz
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 <mark.hatle@windriver.com>
Diffstat (limited to 'poky-init-build-env')
-rwxr-xr-xpoky-init-build-env8
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
24elif [ "x$BASH_SOURCE" = "x" ]; then 24elif [ "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"
26else 26else
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
28fi 34fi
29 35