Changes in tools/ew.py [3692678:7f4937e] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r3692678 r7f4937e  
    169169        return ' -usb'
    170170
    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 
    181171def qemu_audio_options():
    182172        if is_override('nosnd'):
     
    190180
    191181        cmdline = cmd
    192         if 'qemu_path' in overrides.keys():
    193                 cmdline = overrides['qemu_path'] + cmd
    194 
    195182        if options != '':
    196183                cmdline += ' ' + options
     
    202189        if (not 'usb' in cfg.keys()) or cfg['usb']:
    203190                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()
    208191        if (not 'audio' in cfg.keys()) or cfg['audio']:
    209192                cmdline += qemu_audio_options()
     
    314297def usage():
    315298        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" %
    317300            os.path.basename(sys.argv[0]))
    318301        print("-d\tDry run: do not run the emulation, just print the command line.")
     
    323306        print("-nosnd\tDisable sound, if applicable.")
    324307        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.")
    327308
    328309def fail(platform, machine):
     
    332313def run():
    333314        expect_nic = False
    334         expect_qemu = False
    335315
    336316        for i in range(1, len(sys.argv)):
     
    349329                                usage()
    350330                                exit()
    351 
    352                 if expect_qemu:
    353                         expect_qemu = False
    354                         overrides['qemu_path'] = sys.argv[i]
    355331
    356332                elif sys.argv[i] == '-h':
     
    371347                elif sys.argv[i] == '-nousb':
    372348                        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
    379349                else:
    380350                        usage()
Note: See TracChangeset for help on using the changeset viewer.