Changes in tools/ew.py [06f10ac:e9f7778] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r06f10ac re9f7778  
    144144                        return 'system-arm', '-M raspi1ap'
    145145        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
    162161        elif platform == 'ia32':
    163162                return 'system-i386', pc_options(32)
Note: See TracChangeset for help on using the changeset viewer.