summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/runqemu8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index e5e66f3453..dd92a64553 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -94,11 +94,13 @@ Examples:
94 runqemu qemux86-64 core-image-sato ext4 94 runqemu qemux86-64 core-image-sato ext4
95 runqemu qemux86-64 wic-image-minimal wic 95 runqemu qemux86-64 wic-image-minimal wic
96 runqemu path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial 96 runqemu path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial
97 runqemu qemux86 iso/hddimg/wic.vmdk/wic.qcow2/wic.vdi/ramfs/cpio.gz... 97 runqemu qemux86 iso/hddimg/wic.vmdk/wic.vhd/wic.vhdx/wic.qcow2/wic.vdi/ramfs/cpio.gz...
98 runqemu qemux86 qemuparams="-m 256" 98 runqemu qemux86 qemuparams="-m 256"
99 runqemu qemux86 bootparams="psplash=false" 99 runqemu qemux86 bootparams="psplash=false"
100 runqemu path/to/<image>-<machine>.wic 100 runqemu path/to/<image>-<machine>.wic
101 runqemu path/to/<image>-<machine>.wic.vmdk 101 runqemu path/to/<image>-<machine>.wic.vmdk
102 runqemu path/to/<image>-<machine>.wic.vhdx
103 runqemu path/to/<image>-<machine>.wic.vhd
102""") 104""")
103 105
104def check_tun(): 106def check_tun():
@@ -179,7 +181,7 @@ class BaseConfig(object):
179 self.portlocks = {} 181 self.portlocks = {}
180 self.bitbake_e = '' 182 self.bitbake_e = ''
181 self.snapshot = False 183 self.snapshot = False
182 self.wictypes = ('wic', 'wic.vmdk', 'wic.qcow2', 'wic.vdi') 184 self.wictypes = ('wic', 'wic.vmdk', 'wic.qcow2', 'wic.vdi', "wic.vhd", "wic.vhdx")
183 self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs', 185 self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs',
184 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz') 186 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz')
185 self.vmtypes = ('hddimg', 'iso') 187 self.vmtypes = ('hddimg', 'iso')
@@ -1203,7 +1205,7 @@ class BaseConfig(object):
1203 return 1205 return
1204 if 'wic.' in self.fstype: 1206 if 'wic.' in self.fstype:
1205 self.fstype = self.fstype[4:] 1207 self.fstype = self.fstype[4:]
1206 rootfs_format = self.fstype if self.fstype in ('vmdk', 'qcow2', 'vdi') else 'raw' 1208 rootfs_format = self.fstype if self.fstype in ('vmdk', 'vhd', 'vhdx', 'qcow2', 'vdi') else 'raw'
1207 1209
1208 qb_rootfs_opt = self.get('QB_ROOTFS_OPT') 1210 qb_rootfs_opt = self.get('QB_ROOTFS_OPT')
1209 if qb_rootfs_opt: 1211 if qb_rootfs_opt: