summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-22 13:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-22 13:14:24 +0100
commitc2f71a86f5eb040932adf695887a1885d760f536 (patch)
treebb9fe2dae3b5a4771cb8ac7f9e39c9d3536ef068 /scripts
parent2b84008bc951eadeb72b70d3cd062437b901516f (diff)
downloadpoky-c2f71a86f5eb040932adf695887a1885d760f536.tar.gz
poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific into runqemu
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-env-internal6
-rwxr-xr-xscripts/runqemu6
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal
index 62785f1acc..d25816c6a6 100755
--- a/scripts/poky-env-internal
+++ b/scripts/poky-env-internal
@@ -82,10 +82,6 @@ BBPATH="$NEWPATH"
82 82
83MSG='' 83MSG=''
84 84
85BUILD_ARCH=`uname -m`
86BUILD_OS=`uname | tr '[A-Z]' '[a-z]'`
87BUILD_SYS="$BUILD_ARCH-$BUILD_OS"
88
89PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH" 85PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH"
90 86
91# Remove any symlinks from paths 87# Remove any symlinks from paths
@@ -128,7 +124,7 @@ fi
128unset POKYLOCALCONF 124unset POKYLOCALCONF
129unset POKYLAYERCONF 125unset POKYLAYERCONF
130 126
131export BBPATH OEROOT BUILD_SYS BUILDDIR 127export BBPATH OEROOT BUILDDIR
132 128
133# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make 129# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
134# install' if set 130# install' if set
diff --git a/scripts/runqemu b/scripts/runqemu
index 82fc4e93b7..c45b2a1c86 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -23,9 +23,13 @@ if [ "x$BUILDDIR" = "x" ]; then
23 type -P bitbake &>/dev/null || { 23 type -P bitbake &>/dev/null || {
24 echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; } 24 echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; }
25 25
26 # we have bitbake in PATH, get TMPDIR from the environment 26 # we have bitbake in PATH, get TMPDIR and BUILD_SYS from the environment
27 TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2` 27 TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
28 BUILD_SYS=`bitbake -e | grep BUILD_SYS=\" | cut -d '=' -f2 | cut -d '"' -f2`
28else 29else
30 BUILD_ARCH=`uname -m`
31 BUILD_OS=`uname | tr '[A-Z]' '[a-z]'`
32 BUILD_SYS="$BUILD_ARCH-$BUILD_OS"
29 TMPDIR=$BUILDDIR/tmp 33 TMPDIR=$BUILDDIR/tmp
30fi 34fi
31 35