Changeset 27de618 in mainline


Ignore:
Timestamp:
2018-02-25T15:29:11Z (6 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3692678
Parents:
e0a5d4c
Message:

ew.py - use tablet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    re0a5d4c r27de618  
    174174        return ' -device nec-usb-xhci,id=xhci'
    175175
     176def qemu_tablet_options():
     177        if is_override('notablet') or (is_override('nousb') and is_override('noxhci')):
     178                return ''
     179        return ' -device usb-tablet'
     180
    176181def qemu_audio_options():
    177182        if is_override('nosnd'):
     
    196201        if (not 'xhci' in cfg.keys()) or cfg['xhci']:
    197202                cmdline += qemu_xhci_options()
     203        if (not 'tablet' in cfg.keys()) or cfg['tablet']:
     204                cmdline += qemu_tablet_options()
    198205        if (not 'audio' in cfg.keys()) or cfg['audio']:
    199206                cmdline += qemu_audio_options()
     
    304311def usage():
    305312        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    306         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci]\n" %
     313        print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    307314            os.path.basename(sys.argv[0]))
    308315        print("-d\tDry run: do not run the emulation, just print the command line.")
     
    314321        print("-nousb\tDisable USB support, if applicable.")
    315322        print("-noxhci\tDisable XHCI support, if applicable.")
     323        print("-notablet\tDisable USB tablet (use only relative-position PS/2 mouse instead), if applicable.")
    316324
    317325def fail(platform, machine):
     
    357365                elif sys.argv[i] == '-noxhci':
    358366                        overrides['noxhci'] = True
     367                elif sys.argv[i] == '-notablet':
     368                        overrides['notablet'] = True
    359369                else:
    360370                        usage()
Note: See TracChangeset for help on using the changeset viewer.