poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific into runqemu
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
2b84008bc9
commit
c2f71a86f5
|
@ -82,10 +82,6 @@ BBPATH="$NEWPATH"
|
||||||
|
|
||||||
MSG=''
|
MSG=''
|
||||||
|
|
||||||
BUILD_ARCH=`uname -m`
|
|
||||||
BUILD_OS=`uname | tr '[A-Z]' '[a-z]'`
|
|
||||||
BUILD_SYS="$BUILD_ARCH-$BUILD_OS"
|
|
||||||
|
|
||||||
PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH"
|
PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH"
|
||||||
|
|
||||||
# Remove any symlinks from paths
|
# Remove any symlinks from paths
|
||||||
|
@ -128,7 +124,7 @@ fi
|
||||||
unset POKYLOCALCONF
|
unset POKYLOCALCONF
|
||||||
unset POKYLAYERCONF
|
unset POKYLAYERCONF
|
||||||
|
|
||||||
export BBPATH OEROOT BUILD_SYS BUILDDIR
|
export BBPATH OEROOT BUILDDIR
|
||||||
|
|
||||||
# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
|
# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
|
||||||
# install' if set
|
# install' if set
|
||||||
|
|
|
@ -23,9 +23,13 @@ if [ "x$BUILDDIR" = "x" ]; then
|
||||||
type -P bitbake &>/dev/null || {
|
type -P bitbake &>/dev/null || {
|
||||||
echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; }
|
echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; }
|
||||||
|
|
||||||
# we have bitbake in PATH, get TMPDIR from the environment
|
# we have bitbake in PATH, get TMPDIR and BUILD_SYS from the environment
|
||||||
TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
|
TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
|
||||||
|
BUILD_SYS=`bitbake -e | grep BUILD_SYS=\" | cut -d '=' -f2 | cut -d '"' -f2`
|
||||||
else
|
else
|
||||||
|
BUILD_ARCH=`uname -m`
|
||||||
|
BUILD_OS=`uname | tr '[A-Z]' '[a-z]'`
|
||||||
|
BUILD_SYS="$BUILD_ARCH-$BUILD_OS"
|
||||||
TMPDIR=$BUILDDIR/tmp
|
TMPDIR=$BUILDDIR/tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue