Skip to content

Commit 44f12ea

Browse files
committed
boot-qemu.py: Fix downloading LoongArch firmware
Ensure 'images/loongarch' exists before trying to download the firmware. I missed this because 'images/loongarch' was erroneously a part of the history when LoongArch support was merged in #109. Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 2b70520 commit 44f12ea

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)