mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-12-17 09:06:21 +00:00
loongarch: Add to build system
This patch adds LoongArch to the GRUB build system and various tools, so GRUB can be built on LoongArch as a UEFI application. Signed-off-by: Zhou Yang <zhouyang@loongson.cn> Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This commit is contained in:
@@ -638,6 +638,22 @@ static const struct grub_install_image_target_desc image_targets[] =
|
||||
.pe_target = GRUB_PE32_MACHINE_MIPS,
|
||||
.elf_target = EM_MIPS,
|
||||
},
|
||||
{
|
||||
.dirname = "loongarch64-efi",
|
||||
.names = { "loongarch64-efi", NULL },
|
||||
.voidp_sizeof = 8,
|
||||
.bigendian = 0,
|
||||
.id = IMAGE_EFI,
|
||||
.flags = PLATFORM_FLAGS_NONE,
|
||||
.total_module_size = TARGET_NO_FIELD,
|
||||
.decompressor_compressed_size = TARGET_NO_FIELD,
|
||||
.decompressor_uncompressed_size = TARGET_NO_FIELD,
|
||||
.decompressor_uncompressed_addr = TARGET_NO_FIELD,
|
||||
.section_align = GRUB_PE32_SECTION_ALIGNMENT,
|
||||
.vaddr_offset = EFI64_HEADER_SIZE,
|
||||
.pe_target = GRUB_PE32_MACHINE_LOONGARCH64,
|
||||
.elf_target = EM_LOONGARCH,
|
||||
},
|
||||
{
|
||||
.dirname = "riscv32-efi",
|
||||
.names = { "riscv32-efi", NULL },
|
||||
|
||||
Reference in New Issue
Block a user