summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-09 20:13:45 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-09 20:13:45 +0000
commit1a89cd510d8f550dcd70941196d69f7ad2a14106 (patch)
tree0ef49c57a43afda0b6406e059136aa0d95332ad6 /scripts
parent248c66c6e22ec9df2e8dd83ff913d42d17f358c4 (diff)
downloadopenembedded-core-1a89cd510d8f550dcd70941196d69f7ad2a14106.tar.gz
openembedded-core-1a89cd510d8f550dcd70941196d69f7ad2a14106.tar.bz2
openembedded-core-1a89cd510d8f550dcd70941196d69f7ad2a14106.zip
scripts: Further quoting fixes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3443 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-qemu-internal17
-rwxr-xr-xscripts/runqemu2
2 files changed, 12 insertions, 7 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index 82e6a038df..6e883a0469 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -32,6 +32,7 @@
QEMUIFUP=`which poky-qemu-ifup`
KERNEL_NETWORK_CMD="ip=192.168.7.2::192.168.7.1:255.255.255.0"
QEMU_NETWORK_CMD="-net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=$QEMUIFUP"
+KERNCMDLINE="mem=$QEMU_MEMORY"
if [ -z "$QEMU_MEMORY" ]; then
QEMU_MEMORY="64M"
@@ -60,7 +61,8 @@ fi
if [ "$MACHINE" = "qemuarm" ]; then
QEMU=`which qemu-system-arm`
if [ "$TYPE" = "ext2" ]; then
- QEMUOPTIONS="-append 'root=/dev/sda console=ttyAMA0 console=tty0 mem=$QEMU_MEMORY' $QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet"
+ KERNCMDLINE="root=/dev/sda console=ttyAMA0 console=tty0 mem=$QEMU_MEMORY"
+ QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet"
fi
if [ "$TYPE" = "nfs" ]; then
if [ "x$HDIMAGE" = "x" ]; then
@@ -70,14 +72,16 @@ if [ "$MACHINE" = "qemuarm" ]; then
echo "Error, NFS mount point $HDIMAGE doesn't exist"
return
fi
- QEMUOPTIONS="-append 'root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD' $QEMU_NETWORK_CMD -M versatilepb"
+ KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
+ QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb"
fi
fi
if [ "$MACHINE" = "qemux86" ]; then
QEMU=`which qemu`
if [ "$TYPE" = "ext2" ]; then
- QEMUOPTIONS="-std-vga -append 'root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD' $QEMU_NETWORK_CMD -hda $HDIMAGE -usb -usbdevice wacom-tablet"
+ KERNCMDLINE="root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
+ QEMUOPTIONS="-std-vga $QEMU_NETWORK_CMD -hda $HDIMAGE -usb -usbdevice wacom-tablet"
fi
if [ "$TYPE" = "nfs" ]; then
if [ "x$HDIMAGE" = "x" ]; then
@@ -87,7 +91,8 @@ if [ "$MACHINE" = "qemux86" ]; then
echo "Error, NFS mount point $HDIMAGE doesn't exist."
return
fi
- QEMUOPTIONS="-std-vga -append 'root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD' $QEMU_NETWORK_CMD"
+ KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
+ QEMUOPTIONS="-std-vga $QEMU_NETWORK_CMD"
fi
fi
@@ -123,5 +128,5 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
fi
echo "Running $QEMU using sudo..."
-echo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS"
-sudo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS"
+echo $QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS --append "$KERNCMDLINE"
+sudo $QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS --append "$KERNCMDLINE"
diff --git a/scripts/runqemu b/scripts/runqemu
index bc40b46745..263a1d4ddb 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -112,7 +112,7 @@ if [ "$MACHINE" = "qemux86" ]; then
fi
fi
fi
- CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux-gnueabi/bin
+ CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux/bin
fi
export PATH=$CROSSPATH:$PATH