Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions boot-qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,8 @@ def __init__(self):
self._initrd_arch = 'loongarch'

bios = Path(utils.BOOT_UTILS, 'images', self._initrd_arch,
'edk2-loongarch64-code.fd')
'QEMU_EFI.fd')
if not bios.exists():
# Loongson renamed this in https://github.com/loongson/Firmware/commit/638906de6143283d86c70d80f4e9a30b50731c24
# so download it to the new location if it does not exist already.
bios = bios.with_name('QEMU_EFI.fd')

bios.parent.mkdir(exist_ok=True, parents=True)
firmware_url = f"https://github.com/loongson/Firmware/raw/main/LoongArchVirtMachine/{bios.name}"
utils.green(
Expand Down