Skip to content

Commit ef9fa5a

Browse files
authored
Merge pull request #110 from nathanchance/fix-downloading-loongarch-firmware
boot-qemu.py: Fix downloading LoongArch firmware
2 parents 2b70520 + 44f12ea commit ef9fa5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

boot-qemu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def __init__(self):
489489
bios = Path(utils.BOOT_UTILS, 'images', self._initrd_arch,
490490
'edk2-loongarch64-code.fd')
491491
if not bios.exists():
492+
bios.parent.mkdir(exist_ok=True, parents=True)
492493
firmware_url = f"https://github.com/loongson/Firmware/raw/main/LoongArchVirtMachine/{bios.name}"
493494
utils.green(
494495
f"Downloading LoongArch firmware from {firmware_url}...")

0 commit comments

Comments
 (0)