From ca0e436d517816d0f797115a5b85cb4d2ae0171f Mon Sep 17 00:00:00 2001 From: Dongyan Qian Date: Fri, 7 Aug 2026 10:32:43 +0800 Subject: [PATCH] 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 --- UefiCpuPkg/UefiCpuPkg.dsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/UefiCpuPkg.dsc b/UefiCpuPkg/UefiCpuPkg.dsc index f281c1174b..fb98bb6eab 100644 --- a/UefiCpuPkg/UefiCpuPkg.dsc +++ b/UefiCpuPkg/UefiCpuPkg.dsc @@ -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