summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml9
-rw-r--r--OvmfPkg/PlatformCI/QemuBuild.py8
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