Changes in tools/ew.py [13eecc4:d4b7b29] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r13eecc4 rd4b7b29 135 135 hdisk_mk() 136 136 137 hdd_options = '' 138 if 'hdd' in overrides.keys(): 139 if 'ata' in overrides['hdd'].keys(): 140 hdd_options += '' 141 elif 'virtio-blk' in overrides['hdd'].keys(): 142 hdd_options += ',if=virtio' 143 144 return ' -drive file=hdisk.img,index=0,media=disk,format=raw' + hdd_options 137 return ' -drive file=hdisk.img,index=0,media=disk,format=raw' 145 138 146 139 def qemu_nic_ne2k_options(): … … 343 336 def usage(): 344 337 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 345 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [- hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %338 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" % 346 339 os.path.basename(sys.argv[0])) 347 340 print("-d\tDry run: do not run the emulation, just print the command line.") … … 364 357 def run(): 365 358 expect_nic = False 366 expect_hdd = False367 359 expect_qemu = False 368 360 … … 386 378 continue 387 379 388 if expect_hdd:389 expect_hdd = False390 if not 'hdd' in overrides.keys():391 overrides['hdd'] = {}392 if sys.argv[i] == 'ata':393 overrides['hdd']['ata'] = True394 elif sys.argv[i] == 'virtio-blk':395 overrides['hdd']['virtio-blk'] = True396 else:397 usage()398 exit()399 continue400 401 380 if expect_qemu: 402 381 expect_qemu = False … … 410 389 elif sys.argv[i] == '-net' and i < len(sys.argv) - 1: 411 390 expect_nic = True 412 elif sys.argv[i] == '-hdd' and i < len(sys.argv) - 1:413 expect_hdd = True414 391 elif sys.argv[i] == '-nohdd': 415 392 overrides['nohdd'] = True
Note:
See TracChangeset
for help on using the changeset viewer.