mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformCI: Add CI coverage for LoongArchVirtQemu
Add support for building LoongArchVirtQemu platform in CI BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Chao Li <lichao@loongson.cn>
This commit is contained in:
parent
c2d6efaef9
commit
7a1739d896
|
@ -186,6 +186,15 @@ jobs:
|
|||
Run.Flags: "QEMU_SKIP=TRUE"
|
||||
Run: $(should_run)
|
||||
|
||||
QEMU_LOONGARCH64_DEBUG:
|
||||
Build.File: "$(package)/PlatformCI/QemuBuild.py"
|
||||
Build.Arch: "LOONGARCH64"
|
||||
Build.Flags: ""
|
||||
Build.Target: "DEBUG"
|
||||
# this build is for LOONGARCH qemu virt not qemu-kvm
|
||||
Run.Flags: "QEMU_SKIP=TRUE"
|
||||
Run: $(should_run)
|
||||
|
||||
workspace:
|
||||
clean: all
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class CommonPlatform():
|
|||
for the different parts of stuart
|
||||
'''
|
||||
PackagesSupported = ("OvmfPkg",)
|
||||
ArchSupported = ("RISCV64",)
|
||||
ArchSupported = ("RISCV64","LOONGARCH64")
|
||||
TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
|
||||
Scopes = ('ovmf', 'edk2-build')
|
||||
WorkspaceRoot = os.path.realpath(os.path.join(
|
||||
|
@ -31,7 +31,11 @@ class CommonPlatform():
|
|||
|
||||
ArchCsv: csv string containing all architectures to build
|
||||
'''
|
||||
return "RiscVVirt/RiscVVirtQemu.dsc"
|
||||
if "RISCV64" in ArchCsv.upper().split(","):
|
||||
dsc = "RiscVVirt/RiscVVirtQemu.dsc"
|
||||
if "LOONGARCH64" in ArchCsv.upper().split(","):
|
||||
dsc = "LoongArchVirt/LoongArchVirtQemu.dsc"
|
||||
return dsc
|
||||
|
||||
import PlatformBuildLib
|
||||
PlatformBuildLib.CommonPlatform = CommonPlatform
|
||||
|
|
Loading…
Reference in New Issue