Skip to content

Commit 14fad43

Browse files
committed
boot-qemu.py: Fix always downloading LoongArch firmware
If the old firmware filename does not exist, the new firmware is always downloaded, even if it already exists. Remove the handling for the old to new transition so that the firmware is only downloaded when it is actually needed. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 2032a4d commit 14fad43

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)