summaryrefslogtreecommitdiff
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-31 18:45:32 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-31 18:45:32 +0000
commit5bc44c708b5bff662256300e6defbf0fec659788 (patch)
tree255d02e99255a6ac9c3f72db2ecb57c67a922c89 /scripts/poky-qemu-internal
parent23ee199a9219df0a1ba2efa5f732b787de022bf6 (diff)
downloadopenembedded-core-5bc44c708b5bff662256300e6defbf0fec659788.tar.gz
openembedded-core-5bc44c708b5bff662256300e6defbf0fec659788.tar.bz2
openembedded-core-5bc44c708b5bff662256300e6defbf0fec659788.tar.xz
openembedded-core-5bc44c708b5bff662256300e6defbf0fec659788.zip
scripts: Fix sdk compiler location handling
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3652 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-xscripts/poky-qemu-internal17
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index ceb6afdbf..b43639eb7 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -19,8 +19,9 @@
# 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
@@ -128,9 +129,19 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
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