mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
roms: Support compile the efi bios for loongarch
Added loongarch UEFI BIOS support to compiled scripts. UEFI code images require 16M alignment, flash images require 16M alignment, under the loongarch architecture.This is agreed upon when the firmware is loaded in QEMU under Loongarch. The naming of UEFI under loongarch refers to the x86 and arm naming methods, and the UEFI image names in x86 and arm are: edk2-i386-code.fd edk2-i386-vars.fd edk2-arm-code.fd edk2-arm-vars.fd So on loongarch, we named it: edk2-loongarch64-code.fd edk2-loongarch64-vars.fd Signed-off-by: Xianglai Li <lixianglai@loongson.cn> Message-ID: <20240724022245.1317884-1-lixianglai@loongson.cn> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
065e2ecf79
commit
b883fb93db
6 changed files with 50 additions and 3 deletions
|
@ -131,3 +131,16 @@ cpy1 = FV/RISCV_VIRT_CODE.fd edk2-riscv-code.fd
|
|||
cpy2 = FV/RISCV_VIRT_VARS.fd edk2-riscv-vars.fd
|
||||
pad1 = edk2-riscv-code.fd 32m
|
||||
pad2 = edk2-riscv-vars.fd 32m
|
||||
|
||||
####################################################################################
|
||||
# LoongArch64
|
||||
|
||||
[build.loongarch64.qemu]
|
||||
conf = OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc
|
||||
arch = LOONGARCH64
|
||||
plat = LoongArchVirtQemu
|
||||
dest = ../pc-bios
|
||||
cpy1 = FV/QEMU_EFI.fd edk2-loongarch64-code.fd
|
||||
pad1 = edk2-loongarch64-code.fd 16m
|
||||
cpy2 = FV/QEMU_VARS.fd edk2-loongarch64-vars.fd
|
||||
pad2 = edk2-loongarch64-vars.fd 16m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue