Changes in tools/ew.py [2fc9bfd:abf8bd8] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r2fc9bfd rabf8bd8  
    146146        return ' -device rtl8139,vlan=0'
    147147
    148 def qemu_nic_virtio_options():
    149         return ' -device virtio-net,vlan=0'
    150 
    151148def qemu_net_options():
    152149        if is_override('nonet'):
     
    161158                if 'ne2k' in overrides['net'].keys():
    162159                        nic_options += qemu_nic_ne2k_options()
    163                 if 'virtio-net' in overrides['net'].keys():
    164                         nic_options += qemu_nic_virtio_options()
    165160        else:
    166161                # Use the default NIC
     
    216211        if (is_override('nographic')):
    217212                cmdline += ' -nographic'
    218 
    219         if ((not is_override('nographic')) and not is_override('noserial')):
    220                 cmdline += ' -serial stdio'
    221213
    222214        if (is_override('bigmem')):
     
    334326def usage():
    335327        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    336         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
     328        print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    337329            os.path.basename(sys.argv[0]))
    338330        print("-d\tDry run: do not run the emulation, just print the command line.")
     
    346338        print("-notablet\tDisable USB tablet (use only relative-position PS/2 mouse instead), if applicable.")
    347339        print("-nographic\tDisable graphical output. Serial port output must be enabled for this to be useful.")
    348         print("-noserial\tDisable serial port output in the terminal.")
    349340        print("-bigmem\tSets maximum RAM size to 4GB.")
    350341
     
    369360                        elif sys.argv[i] == 'ne2k':
    370361                                overrides['net']['ne2k'] = True
    371                         elif sys.argv[i] == 'virtio-net':
    372                                 overrides['net']['virtio-net'] = True
    373362                        else:
    374363                                usage()
     
    405394                elif sys.argv[i] == '-bigmem':
    406395                        overrides['bigmem'] = True
    407                 elif sys.argv[i] == '-noserial':
    408                         overrides['noserial'] = True
    409396                elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1:
    410397                        expect_qemu = True
Note: See TracChangeset for help on using the changeset viewer.