diff options
author | Chao Li <lichao@loongson.cn> | 2024-06-06 17:08:25 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-18 15:02:15 +0000 |
commit | 7a1739d896cb9b7665fac0a12e7021993e960bdb (patch) | |
tree | 87973290cf549b8490654077df3cdc75b792dfae /OvmfPkg/PlatformCI | |
parent | c2d6efaef952d2513e7066020235f8bd1baefecc (diff) | |
download | edk2-7a1739d896cb9b7665fac0a12e7021993e960bdb.tar.gz edk2-7a1739d896cb9b7665fac0a12e7021993e960bdb.tar.bz2 edk2-7a1739d896cb9b7665fac0a12e7021993e960bdb.zip |
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>
Diffstat (limited to 'OvmfPkg/PlatformCI')
-rw-r--r-- | OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml | 9 | ||||
-rw-r--r-- | OvmfPkg/PlatformCI/QemuBuild.py | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml index 5809152d26..6762c2cc3a 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -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
diff --git a/OvmfPkg/PlatformCI/QemuBuild.py b/OvmfPkg/PlatformCI/QemuBuild.py index c737d98d51..e80e0cbbd8 100644 --- a/OvmfPkg/PlatformCI/QemuBuild.py +++ b/OvmfPkg/PlatformCI/QemuBuild.py @@ -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
|