Changes in tools/ew.py [56a3c29e:e9f7778] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r56a3c29e re9f7778 79 79 for termemu in emus: 80 80 try: 81 subprocess.check_output('which ' + termemu, shell = True , stderr = subprocess.STDOUT)81 subprocess.check_output('which ' + termemu, shell = True) 82 82 return termemu 83 83 except: … … 144 144 return 'system-arm', '-M raspi1ap' 145 145 elif platform == 'arm64': 146 if machine == 'virt': 147 # Search for the EDK2 firmware image 148 default_paths = ( 149 '/usr/local/qemu-efi-aarch64/QEMU_EFI.fd', # Custom 150 '/usr/share/edk2/aarch64/QEMU_EFI.fd', # Fedora 151 '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', # Ubuntu 152 ) 153 extra_info = ("Pre-compiled binary can be obtained from " 154 "http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_GCC5/QEMU_EFI.fd.\n") 155 efi_path = find_firmware( 156 "EDK2", 'EW_QEMU_EFI_AARCH64', default_paths, extra_info) 157 if efi_path is None: 158 raise Exception 159 160 return 'system-aarch64', \ 161 '-M virt -cpu cortex-a57 -m 1024 -bios %s' % efi_path 146 # Search for the EDK2 firmware image 147 default_paths = ( 148 '/usr/local/qemu-efi-aarch64/QEMU_EFI.fd', # Custom 149 '/usr/share/edk2/aarch64/QEMU_EFI.fd', # Fedora 150 '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', # Ubuntu 151 ) 152 extra_info = ("Pre-compiled binary can be obtained from " 153 "http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_GCC5/QEMU_EFI.fd.\n") 154 efi_path = find_firmware( 155 "EDK2", 'EW_QEMU_EFI_AARCH64', default_paths, extra_info) 156 if efi_path is None: 157 raise Exception 158 159 return 'system-aarch64', \ 160 '-M virt -cpu cortex-a57 -m 1024 -bios %s' % efi_path 162 161 elif platform == 'ia32': 163 162 return 'system-i386', pc_options(32) … … 173 172 raise Exception 174 173 if processor == 'us': 175 cmdline = '-M sun4u' 176 if is_override('nographic'): 177 cmdline += ' --prom-env boot-args="console=devices/\\hw\\pci0\\01:01.0\\com1\\a"' 178 return 'system-sparc64', cmdline 174 return 'system-sparc64', '-M sun4u --prom-env boot-args="console=devices/\\hw\\pci0\\01:01.0\\com1\\a"' 179 175 180 176 # processor = 'sun4v' … … 288 284 if (is_override('nographic')): 289 285 cmdline += ' -nographic' 290 console = True291 286 292 287 if (not console and (not is_override('nographic')) and not is_override('noserial')): … … 331 326 def msim_run(platform, machine, processor): 332 327 hdisk_mk() 333 run_in_console('msim - n -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim')328 run_in_console('msim -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim') 334 329 335 330 def spike_run(platform, machine, processor): … … 414 409 'image' : 'image.iso', 415 410 'audio' : False, 416 'console' : False,411 'console' : True, 417 412 'net' : False, 418 413 'usb' : False, … … 422 417 'sun4v' : { 423 418 'run' : qemu_run, 424 # QEMU 8.0.0 ignores the 'file' argument and instead uses 'id', 425 # which defaults to 'pflash0', but can be changed to the same value 426 # as 'file' 427 'image' : '-drive if=pflash,id=image.iso,readonly=on,file=image.iso', 419 'image' : '-drive if=pflash,readonly=on,file=image.iso', 428 420 'audio' : False, 429 421 'console' : True,
Note:
See TracChangeset
for help on using the changeset viewer.