# Call setting:
-# QEMU_MEMORY (optional) set the amount of memory in the emualted system.
-# SERIAL_LOGFILE (optional) log the serial port output to a file
+# QEMU_MEMORY (optional) - set the amount of memory in the emualted system.
+# SERIAL_LOGFILE (optional) - log the serial port output to a file
+# CROSSPATH - the path to any cross toolchain to use with distcc
#
# Image options:
# MACHINE - the machine to run
return
fi
+SDKDIR="/usr/local/poky/eabi-glibc"
+if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" ]; then
+ SDKPATH="$SDKDIR/arm/arm-poky-linux-gnueabi/bin:$SDKDIR/arm/bin"
+fi
+
+if [ "$MACHINE" = "qemux86" ]; then
+ SDKPATH="$SDKDIR/i586/i586-poky-linux/bin:$SDKDIR/i586/bin"
+fi
+PATH=$CROSSPATH:$SDKPATH:$PATH
+
function _quit() {
if [ -n "$PIDFILE" ]; then
- echo kill `cat $PIDFILE`
+ #echo kill `cat $PIDFILE`
kill `cat $PIDFILE`
fi
return
INTERNAL_SCRIPT=`which poky-qemu-internal`
-SDKDIR=/usr/local/poky/eabi-glibc/arm/bin/
-PATH=$BUILDDIR/tmp/staging/$BUILD_SYS/usr/bin:$BUILDDIR/tmp/cross/bin:$SDKDIR:$PATH
-
if [ "x$1" = "x" ]; then
echo
echo "Run as $0 MACHINE IMAGETYPE ZIMAGE IMAGEFILE"
CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux/bin
fi
-export PATH=$CROSSPATH:$PATH
+CROSSPATH=$BUILDDIR/tmp/staging/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin
if [ ! -e $CROSSPATH/cc ]; then
ln -s $CROSSPATH/gcc $CROSSPATH/cc