Changeset 8a9a41e in mainline for tools/ew.py


Ignore:
Timestamp:
2021-10-24T08:28:43Z (4 years ago)
Author:
GitHub <noreply@…>
Children:
1b9fcd0
Parents:
2ce943a (diff), cd981f2a (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.
git-author:
Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
git-committer:
GitHub <noreply@…> (2021-10-24 08:28:43)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

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