summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-xscripts/poky-qemu9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu
index 227df6ffe9..1407c25f33 100755
--- a/scripts/poky-qemu
+++ b/scripts/poky-qemu
@@ -20,22 +20,24 @@
20 20
21if [ "x$1" = "x" ]; then 21if [ "x$1" = "x" ]; then
22 MYNAME=`basename $0` 22 MYNAME=`basename $0`
23 echo "Run as MACHINE=xyz $MYNAME ZIMAGE IMAGEFILE" 23 echo "Run as MACHINE=xyz $MYNAME ZIMAGE IMAGEFILE [OPTIONS]"
24 echo "where:" 24 echo "where:"
25 echo " ZIMAGE - the kernel image file to use" 25 echo " ZIMAGE - the kernel image file to use"
26 echo " IMAGEFILE - the image file/location to use" 26 echo " IMAGEFILE - the image file/location to use"
27 echo " (NFS booting assumed if IMAGEFILE not specified)" 27 echo " (NFS booting assumed if IMAGEFILE not specified)"
28 echo " MACHINE=xyz - the machine name (optional, autodetected from ZIMAGE if unspecified)" 28 echo " MACHINE=xyz - the machine name (optional, autodetected from ZIMAGE if unspecified)"
29 echo " OPTIONS - extra options to pass to QEMU"
29 exit 1 30 exit 1
30else 31else
31 ZIMAGE=$1 32 ZIMAGE=$1
33 shift
32fi 34fi
33 35
34if [ "x$MACHINE" = "x" ]; then 36if [ "x$MACHINE" = "x" ]; then
35 MACHINE=`basename $ZIMAGE | sed -r -e 's#.*-([a-z]+[0-9]*)-?[0-9]*..*#\1#'` 37 MACHINE=`basename $ZIMAGE | sed -r -e 's#.*-([a-z]+[0-9]*)-?[0-9]*..*#\1#'`
36fi 38fi
37 39
38if [ "x$2" = "x" ]; then 40if [ "x$1" = "x" ]; then
39 TYPE="nfs" 41 TYPE="nfs"
40else 42else
41 TYPE="ext2" 43 TYPE="ext2"
@@ -51,7 +53,8 @@ else
51 if [ "$MACHINE" = "nokia800-maemo" ]; then 53 if [ "$MACHINE" = "nokia800-maemo" ]; then
52 TYPE="jffs2" 54 TYPE="jffs2"
53 fi 55 fi
54 HDIMAGE=$2 56 HDIMAGE=$1
57 shift
55fi 58fi
56 59
57INTERNAL_SCRIPT=`which poky-qemu-internal` 60INTERNAL_SCRIPT=`which poky-qemu-internal`