Changes in tools/ew.py [3692678:7f4937e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r3692678 r7f4937e 169 169 return ' -usb' 170 170 171 def qemu_xhci_options():172 if is_override('noxhci'):173 return ''174 return ' -device nec-usb-xhci,id=xhci'175 176 def qemu_tablet_options():177 if is_override('notablet') or (is_override('nousb') and is_override('noxhci')):178 return ''179 return ' -device usb-tablet'180 181 171 def qemu_audio_options(): 182 172 if is_override('nosnd'): … … 190 180 191 181 cmdline = cmd 192 if 'qemu_path' in overrides.keys():193 cmdline = overrides['qemu_path'] + cmd194 195 182 if options != '': 196 183 cmdline += ' ' + options … … 202 189 if (not 'usb' in cfg.keys()) or cfg['usb']: 203 190 cmdline += qemu_usb_options() 204 if (not 'xhci' in cfg.keys()) or cfg['xhci']:205 cmdline += qemu_xhci_options()206 if (not 'tablet' in cfg.keys()) or cfg['tablet']:207 cmdline += qemu_tablet_options()208 191 if (not 'audio' in cfg.keys()) or cfg['audio']: 209 192 cmdline += qemu_audio_options() … … 314 297 def usage(): 315 298 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 316 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %299 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb]\n" % 317 300 os.path.basename(sys.argv[0])) 318 301 print("-d\tDry run: do not run the emulation, just print the command line.") … … 323 306 print("-nosnd\tDisable sound, if applicable.") 324 307 print("-nousb\tDisable USB support, if applicable.") 325 print("-noxhci\tDisable XHCI support, if applicable.")326 print("-notablet\tDisable USB tablet (use only relative-position PS/2 mouse instead), if applicable.")327 308 328 309 def fail(platform, machine): … … 332 313 def run(): 333 314 expect_nic = False 334 expect_qemu = False335 315 336 316 for i in range(1, len(sys.argv)): … … 349 329 usage() 350 330 exit() 351 352 if expect_qemu:353 expect_qemu = False354 overrides['qemu_path'] = sys.argv[i]355 331 356 332 elif sys.argv[i] == '-h': … … 371 347 elif sys.argv[i] == '-nousb': 372 348 overrides['nousb'] = True 373 elif sys.argv[i] == '-noxhci':374 overrides['noxhci'] = True375 elif sys.argv[i] == '-notablet':376 overrides['notablet'] = True377 elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1:378 expect_qemu = True379 349 else: 380 350 usage()
Note:
See TracChangeset
for help on using the changeset viewer.