summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
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 ceb6afdbf3..b43639eb77 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -19,8 +19,9 @@
19 19
20 20
21# Call setting: 21# Call setting:
22# QEMU_MEMORY (optional) set the amount of memory in the emualted system. 22# QEMU_MEMORY (optional) - set the amount of memory in the emualted system.
23# SERIAL_LOGFILE (optional) log the serial port output to a file 23# SERIAL_LOGFILE (optional) - log the serial port output to a file
24# CROSSPATH - the path to any cross toolchain to use with distcc
24# 25#
25# Image options: 26# Image options:
26# MACHINE - the machine to run 27# MACHINE - the machine to run
@@ -128,9 +129,19 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
128 return 129 return
129fi 130fi
130 131
132SDKDIR="/usr/local/poky/eabi-glibc"
133if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" ]; then
134 SDKPATH="$SDKDIR/arm/arm-poky-linux-gnueabi/bin:$SDKDIR/arm/bin"
135fi
136
137if [ "$MACHINE" = "qemux86" ]; then
138 SDKPATH="$SDKDIR/i586/i586-poky-linux/bin:$SDKDIR/i586/bin"
139fi
140PATH=$CROSSPATH:$SDKPATH:$PATH
141
131function _quit() { 142function _quit() {
132 if [ -n "$PIDFILE" ]; then 143 if [ -n "$PIDFILE" ]; then
133 echo kill `cat $PIDFILE` 144 #echo kill `cat $PIDFILE`
134 kill `cat $PIDFILE` 145 kill `cat $PIDFILE`
135 fi 146 fi
136 return 147 return