Changes in tools/ew.py [7f4937e:3692678] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r7f4937e r3692678 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 171 181 def qemu_audio_options(): 172 182 if is_override('nosnd'): … … 180 190 181 191 cmdline = cmd 192 if 'qemu_path' in overrides.keys(): 193 cmdline = overrides['qemu_path'] + cmd 194 182 195 if options != '': 183 196 cmdline += ' ' + options … … 189 202 if (not 'usb' in cfg.keys()) or cfg['usb']: 190 203 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() 191 208 if (not 'audio' in cfg.keys()) or cfg['audio']: 192 209 cmdline += qemu_audio_options() … … 297 314 def usage(): 298 315 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 299 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] \n" %316 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" % 300 317 os.path.basename(sys.argv[0])) 301 318 print("-d\tDry run: do not run the emulation, just print the command line.") … … 306 323 print("-nosnd\tDisable sound, if applicable.") 307 324 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.") 308 327 309 328 def fail(platform, machine): … … 313 332 def run(): 314 333 expect_nic = False 334 expect_qemu = False 315 335 316 336 for i in range(1, len(sys.argv)): … … 329 349 usage() 330 350 exit() 351 352 if expect_qemu: 353 expect_qemu = False 354 overrides['qemu_path'] = sys.argv[i] 331 355 332 356 elif sys.argv[i] == '-h': … … 347 371 elif sys.argv[i] == '-nousb': 348 372 overrides['nousb'] = True 373 elif sys.argv[i] == '-noxhci': 374 overrides['noxhci'] = True 375 elif sys.argv[i] == '-notablet': 376 overrides['notablet'] = True 377 elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1: 378 expect_qemu = True 349 379 else: 350 380 usage()
Note:
See TracChangeset
for help on using the changeset viewer.