]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(run-qemu): use efi firmware when testing on loongarch64 main
authorMiao Wang <shankerwangmiao@gmail.com>
Fri, 12 Jun 2026 10:47:40 +0000 (18:47 +0800)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 19 Jun 2026 09:09:20 +0000 (05:09 -0400)
When testing on loongarch64, we should use EFI firmware, since
the UEFI runtime services and ACPI tables are required by the
linux kernel for loongarch64.

test/run-qemu

index 9ebb9e191b66fce8feba9d27146d8108b20987cd..fdeb4b5b323e2e0dd71b762aedf43fa6ee41ad65 100755 (executable)
@@ -64,6 +64,13 @@ get_uefi_code() {
         arm | armhf | armv7l)
             paths=("/usr/share/AAVMF/AAVMF32_CODE.fd")
             ;;
+        loong64 | loongarch64)
+            paths=(
+                "/usr/share/qemu-efi-loongarch64/QEMU_EFI.fd"
+                "/usr/share/LA64VMF/QEMU_EFI.fd"
+                "/usr/share/edk2/loongarch64/QEMU_EFI.fd"
+            )
+            ;;
     esac
     for path in "${paths[@]}"; do
         if [[ -s $path ]]; then