UefiCpuPkg: Enable RISC-V and LoongArch package builds

The GCC CI job passes RISCV64 and LOONGARCH64 in the architecture
list for the UefiCpuPkg package build. However, UefiCpuPkg.dsc does
not list either architecture in SUPPORTED_ARCHITECTURES. BaseTools
therefore filters them out, so the existing modules are not built
for either architecture.

Add RISCV64 and LOONGARCH64 to SUPPORTED_ARCHITECTURES. Provide the
RiscVSbiLib and RiscVMmuLib instances required by the existing
RISC-V components.

This enables package-level build coverage for the existing RISC-V
and LoongArch modules without changing firmware behavior.
Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
This commit is contained in:
Dongyan Qian 2026-08-07 10:32:43 +08:00
parent c5aa7e7d94
commit ca0e436d51

View file

@ -15,7 +15,7 @@
PLATFORM_VERSION = 0.90
DSC_SPECIFICATION = 0x00010005
OUTPUT_DIRECTORY = Build/UefiCpu
SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64
SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64|RISCV64|LOONGARCH64
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
SKUID_IDENTIFIER = DEFAULT
@ -120,6 +120,10 @@
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
[LibraryClasses.RISCV64]
RiscVSbiLib|MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf
RiscVMmuLib|UefiCpuPkg/Library/BaseRiscVMmuLib/BaseRiscVMmuLib.inf
[LibraryClasses.LoongArch64]
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf