diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-03-02 00:45:04 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-25 10:29:14 +0000 |
commit | 36103299291aaecda12f8b7ca5a21c0e50ace8e3 (patch) | |
tree | 4990abf6ff2618ae2835e2e23359d83bc9b12708 /scripts/runqemu | |
parent | d85ca4a61665930855e4fca85e049e7b5ede5d2f (diff) | |
download | poky-36103299291aaecda12f8b7ca5a21c0e50ace8e3.tar.gz |
runqemu: add support for qcow2 and vdi
[YOCTO #9168]
(From OE-Core rev: 0f8306c77b4ebed1ff127b0786b7109abf0d57cd)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 058ee2962c..d95711b191 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -40,8 +40,7 @@ Examples: | |||
40 | $MYNAME qemux86-64 core-image-sato ext4 | 40 | $MYNAME qemux86-64 core-image-sato ext4 |
41 | $MYNAME qemux86-64 wic-image-minimal wic | 41 | $MYNAME qemux86-64 wic-image-minimal wic |
42 | $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial | 42 | $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial |
43 | $MYNAME qemux86 ramfs | 43 | $MYNAME qemux86 iso/hddimg/vmdk/qcow2/vdi/ramfs... |
44 | $MYNAME qemux86 iso | ||
45 | $MYNAME qemux86 qemuparams="-m 256" | 44 | $MYNAME qemux86 qemuparams="-m 256" |
46 | $MYNAME qemux86 bootparams="psplash=false" | 45 | $MYNAME qemux86 bootparams="psplash=false" |
47 | $MYNAME path/to/<image>-<machine>.vmdk | 46 | $MYNAME path/to/<image>-<machine>.vmdk |
@@ -97,7 +96,7 @@ process_filename() { | |||
97 | error "conflicting FSTYPE types [$FSTYPE] and [$EXT]" | 96 | error "conflicting FSTYPE types [$FSTYPE] and [$EXT]" |
98 | fi | 97 | fi |
99 | ;; | 98 | ;; |
100 | /hddimg/|/hdddirect/|/vmdk/|/wic/) | 99 | /hddimg/|/hdddirect/|/vmdk/|/wic/|/qcow2/|/vdi/) |
101 | FSTYPE=$EXT | 100 | FSTYPE=$EXT |
102 | VM=$filename | 101 | VM=$filename |
103 | ROOTFS=$filename | 102 | ROOTFS=$filename |
@@ -129,7 +128,7 @@ while true; do | |||
129 | "ext"[234] | "jffs2" | "nfs" | "btrfs") | 128 | "ext"[234] | "jffs2" | "nfs" | "btrfs") |
130 | check_fstype_conflicts $arg | 129 | check_fstype_conflicts $arg |
131 | ;; | 130 | ;; |
132 | "hddimg" | "hdddirect" | "wic" | "vmdk") | 131 | "hddimg" | "hdddirect" | "wic" | "vmdk" | "qcow2" | "vdi") |
133 | check_fstype_conflicts $arg | 132 | check_fstype_conflicts $arg |
134 | IS_VM="true" | 133 | IS_VM="true" |
135 | ;; | 134 | ;; |