From 44f12ea606eea1c67df4f094ddb0118db4a42f52 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Mon, 10 Jul 2023 12:04:26 -0700 Subject: [PATCH] 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 --- boot-qemu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/boot-qemu.py b/boot-qemu.py index 8b48b0f..77a144f 100755 --- a/boot-qemu.py +++ b/boot-qemu.py @@ -489,6 +489,7 @@ def __init__(self): bios = Path(utils.BOOT_UTILS, 'images', self._initrd_arch, 'edk2-loongarch64-code.fd') if not bios.exists(): + bios.parent.mkdir(exist_ok=True, parents=True) firmware_url = f"https://github.com/loongson/Firmware/raw/main/LoongArchVirtMachine/{bios.name}" utils.green( f"Downloading LoongArch firmware from {firmware_url}...")