[bootloader] Add loongarch64 support for bootloader

This commit is contained in:
Huang Jia Wen 2022-03-03 14:11:32 +08:00 committed by Adriaan de Groot
parent 7aafeec2cb
commit dca5d9b52b

View File

@ -520,6 +520,8 @@ def get_grub_efi_parameters():
return ("i386-efi", "grubia32.efi", "bootia32.efi") return ("i386-efi", "grubia32.efi", "bootia32.efi")
elif efi_bitness == "64" and cpu_type == "aarch64": elif efi_bitness == "64" and cpu_type == "aarch64":
return ("arm64-efi", "grubaa64.efi", "bootaa64.efi") return ("arm64-efi", "grubaa64.efi", "bootaa64.efi")
elif efi_bitness == "64" and cpu_type == "loongarch64":
return ("loongarch64-efi", "grubloongarch64.efi", "bootloongarch64.efi")
elif efi_bitness == "64": elif efi_bitness == "64":
# If it's not ARM, must by AMD64 # If it's not ARM, must by AMD64
return ("x86_64-efi", "grubx64.efi", "bootx64.efi") return ("x86_64-efi", "grubx64.efi", "bootx64.efi")