mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
uefi-test-tools:: Add LoongArch64 support
Add support to build bios-tables-test iso image for LoongArch system. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Message-Id: <20250520130158.767083-2-maobibo@loongson.cn> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
f0f37daf8e
commit
75d4680c55
3 changed files with 18 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
edk2_dir := ../../roms/edk2
|
||||
images_dir := ../data/uefi-boot-images
|
||||
emulation_targets := arm aarch64 i386 x86_64 riscv64
|
||||
emulation_targets := arm aarch64 i386 x86_64 riscv64 loongarch64
|
||||
uefi_binaries := bios-tables-test
|
||||
intermediate_suffixes := .efi .fat .iso.raw
|
||||
|
||||
|
@ -56,7 +56,8 @@ Build/%.iso.raw: Build/%.fat
|
|||
# stripped from, the argument.
|
||||
map_arm_to_uefi = $(subst arm,ARM,$(1))
|
||||
map_aarch64_to_uefi = $(subst aarch64,AA64,$(call map_arm_to_uefi,$(1)))
|
||||
map_riscv64_to_uefi = $(subst riscv64,RISCV64,$(call map_aarch64_to_uefi,$(1)))
|
||||
map_loongarch64_to_uefi = $(subst loongarch64,LOONGARCH64,$(call map_aarch64_to_uefi,$(1)))
|
||||
map_riscv64_to_uefi = $(subst riscv64,RISCV64,$(call map_loongarch64_to_uefi,$(1)))
|
||||
map_i386_to_uefi = $(subst i386,IA32,$(call map_riscv64_to_uefi,$(1)))
|
||||
map_x86_64_to_uefi = $(subst x86_64,X64,$(call map_i386_to_uefi,$(1)))
|
||||
map_to_uefi = $(subst .,,$(call map_x86_64_to_uefi,$(1)))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
PLATFORM_VERSION = 0.1
|
||||
PLATFORM_NAME = UefiTestTools
|
||||
SKUID_IDENTIFIER = DEFAULT
|
||||
SUPPORTED_ARCHITECTURES = ARM|AARCH64|IA32|X64|RISCV64
|
||||
SUPPORTED_ARCHITECTURES = ARM|AARCH64|IA32|X64|RISCV64|LOONGARCH64
|
||||
BUILD_TARGETS = DEBUG
|
||||
|
||||
[BuildOptions.IA32]
|
||||
|
@ -65,6 +65,10 @@
|
|||
[LibraryClasses.RISCV64]
|
||||
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
||||
|
||||
[LibraryClasses.LOONGARCH64]
|
||||
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
||||
StackCheckLib|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
|
||||
|
||||
[PcdsFixedAtBuild]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8040004F
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
|
||||
|
|
|
@ -21,6 +21,16 @@ dest = ./Build
|
|||
arch = AARCH64
|
||||
cpy1 = AARCH64/BiosTablesTest.efi bios-tables-test.aarch64.efi
|
||||
|
||||
####################################################################################
|
||||
# loongarch64
|
||||
|
||||
[build.loongarch64]
|
||||
conf = UefiTestToolsPkg/UefiTestToolsPkg.dsc
|
||||
plat = UefiTestTools
|
||||
dest = ./Build
|
||||
arch = LOONGARCH64
|
||||
cpy1 = LOONGARCH64/BiosTablesTest.efi bios-tables-test.loongarch64.efi
|
||||
|
||||
####################################################################################
|
||||
# riscv64
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue