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.
arm | armhf | armv7l)
paths=("/usr/share/AAVMF/AAVMF32_CODE.fd")
;;
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
esac
for path in "${paths[@]}"; do
if [[ -s $path ]]; then