Changeset 7bf16b7e in mainline
- Timestamp:
- 2018-05-22T19:06:50Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee0c03a
- Parents:
- 0180c67
- git-author:
- Jakub Jermar <jakub@…> (2018-05-19 19:44:16)
- git-committer:
- Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r0180c67 r7bf16b7e 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 … … 320 325 def usage(): 321 326 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 322 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k ] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %327 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" % 323 328 os.path.basename(sys.argv[0])) 324 329 print("-d\tDry run: do not run the emulation, just print the command line.") … … 352 357 elif sys.argv[i] == 'ne2k': 353 358 overrides['net']['ne2k'] = True 359 elif sys.argv[i] == 'virtio-net': 360 overrides['net']['virtio-net'] = True 354 361 else: 355 362 usage()
Note:
See TracChangeset
for help on using the changeset viewer.