Changeset fbfe59d in mainline for tools/ew.py
- Timestamp:
- 2018-06-25T21:45:05Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8119363
- Parents:
- 2498b95 (diff), e3107e2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r2498b95 rfbfe59d 146 146 return ' -device rtl8139,vlan=0' 147 147 148 def qemu_nic_virtio_options(): 149 return ' -device virtio-net,vlan=0' 150 148 151 def qemu_net_options(): 149 152 if is_override('nonet'): … … 158 161 if 'ne2k' in overrides['net'].keys(): 159 162 nic_options += qemu_nic_ne2k_options() 163 if 'virtio-net' in overrides['net'].keys(): 164 nic_options += qemu_nic_virtio_options() 160 165 else: 161 166 # Use the default NIC … … 326 331 def usage(): 327 332 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 328 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k ] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %333 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" % 329 334 os.path.basename(sys.argv[0])) 330 335 print("-d\tDry run: do not run the emulation, just print the command line.") … … 360 365 elif sys.argv[i] == 'ne2k': 361 366 overrides['net']['ne2k'] = True 367 elif sys.argv[i] == 'virtio-net': 368 overrides['net']['virtio-net'] = True 362 369 else: 363 370 usage()
Note:
See TracChangeset
for help on using the changeset viewer.