Changes in tools/ew.py [2fc9bfd:abf8bd8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r2fc9bfd rabf8bd8 146 146 return ' -device rtl8139,vlan=0' 147 147 148 def qemu_nic_virtio_options():149 return ' -device virtio-net,vlan=0'150 151 148 def qemu_net_options(): 152 149 if is_override('nonet'): … … 161 158 if 'ne2k' in overrides['net'].keys(): 162 159 nic_options += qemu_nic_ne2k_options() 163 if 'virtio-net' in overrides['net'].keys():164 nic_options += qemu_nic_virtio_options()165 160 else: 166 161 # Use the default NIC … … 216 211 if (is_override('nographic')): 217 212 cmdline += ' -nographic' 218 219 if ((not is_override('nographic')) and not is_override('noserial')):220 cmdline += ' -serial stdio'221 213 222 214 if (is_override('bigmem')): … … 334 326 def usage(): 335 327 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" % 337 329 os.path.basename(sys.argv[0])) 338 330 print("-d\tDry run: do not run the emulation, just print the command line.") … … 346 338 print("-notablet\tDisable USB tablet (use only relative-position PS/2 mouse instead), if applicable.") 347 339 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.")349 340 print("-bigmem\tSets maximum RAM size to 4GB.") 350 341 … … 369 360 elif sys.argv[i] == 'ne2k': 370 361 overrides['net']['ne2k'] = True 371 elif sys.argv[i] == 'virtio-net':372 overrides['net']['virtio-net'] = True373 362 else: 374 363 usage() … … 405 394 elif sys.argv[i] == '-bigmem': 406 395 overrides['bigmem'] = True 407 elif sys.argv[i] == '-noserial':408 overrides['noserial'] = True409 396 elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1: 410 397 expect_qemu = True
Note:
See TracChangeset
for help on using the changeset viewer.