diff options
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-x | scripts/poky-qemu | 9 |
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 | ||
21 | if [ "x$1" = "x" ]; then | 21 | if [ "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 |
30 | else | 31 | else |
31 | ZIMAGE=$1 | 32 | ZIMAGE=$1 |
33 | shift | ||
32 | fi | 34 | fi |
33 | 35 | ||
34 | if [ "x$MACHINE" = "x" ]; then | 36 | if [ "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#'` |
36 | fi | 38 | fi |
37 | 39 | ||
38 | if [ "x$2" = "x" ]; then | 40 | if [ "x$1" = "x" ]; then |
39 | TYPE="nfs" | 41 | TYPE="nfs" |
40 | else | 42 | else |
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 | ||
55 | fi | 58 | fi |
56 | 59 | ||
57 | INTERNAL_SCRIPT=`which poky-qemu-internal` | 60 | INTERNAL_SCRIPT=`which poky-qemu-internal` |