Skip to content

Commit fec91a6

Browse files
authored
Merge pull request #123 from nathanchance/fix-loongarch-firmware-download
boot-qemu.py: Fix always downloading LoongArch firmware
2 parents 2032a4d + 14fad43 commit fec91a6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

boot-qemu.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,8 @@ def __init__(self):
510510
self._initrd_arch = 'loongarch'
511511

512512
bios = Path(utils.BOOT_UTILS, 'images', self._initrd_arch,
513-
'edk2-loongarch64-code.fd')
513+
'QEMU_EFI.fd')
514514
if not bios.exists():
515-
# Loongson renamed this in https://github.com/loongson/Firmware/commit/638906de6143283d86c70d80f4e9a30b50731c24
516-
# so download it to the new location if it does not exist already.
517-
bios = bios.with_name('QEMU_EFI.fd')
518-
519515
bios.parent.mkdir(exist_ok=True, parents=True)
520516
firmware_url = f"https://github.com/loongson/Firmware/raw/main/LoongArchVirtMachine/{bios.name}"
521517
utils.green(

0 commit comments

Comments
 (0)