summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-12-13 09:14:43 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-13 11:36:57 +0000
commit1203eba58ecfcddf9a9ae164ccf32ca29037af82 (patch)
tree0d7a3ddec7f543bfaf41cf46905f995c73fe5b69 /OvmfPkg
parent2722856a8707ec74c2fd95a22deb0dad9c58aef5 (diff)
downloadedk2-1203eba58ecfcddf9a9ae164ccf32ca29037af82.tar.gz
edk2-1203eba58ecfcddf9a9ae164ccf32ca29037af82.tar.bz2
edk2-1203eba58ecfcddf9a9ae164ccf32ca29037af82.zip
OvmfPkg/PlatformCI: add XenBuild.py
Add build test for OvmfXen. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml9
-rw-r--r--OvmfPkg/PlatformCI/XenBuild.py37
2 files changed, 46 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
index 803bc8bbba..2de0688cfe 100644
--- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
+++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
@@ -142,6 +142,15 @@ jobs:
# can't boot to uefi shell -> skip test
Run.Flags: "QEMU_SKIP=TRUE"
Run: $(should_run)
+
+ OVMF_XEN_X64_DEBUG:
+ Build.File: "$(package)/PlatformCI/XenBuild.py"
+ Build.Arch: "X64"
+ Build.Flags: ""
+ Build.Target: "DEBUG"
+ # this build is for xen not qemu-kvm
+ Run.Flags: "QEMU_SKIP=TRUE"
+ Run: $(should_run)
workspace:
clean: all
diff --git a/OvmfPkg/PlatformCI/XenBuild.py b/OvmfPkg/PlatformCI/XenBuild.py
new file mode 100644
index 0000000000..25a70a177d
--- /dev/null
+++ b/OvmfPkg/PlatformCI/XenBuild.py
@@ -0,0 +1,37 @@
+# @file
+# Script to Build OVMF UEFI firmware
+#
+# Copyright (c) Microsoft Corporation.
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+##
+import os
+import sys
+
+sys.path.append(os.path.dirname(os.path.abspath(__file__)))
+from PlatformBuildLib import SettingsManager
+from PlatformBuildLib import PlatformBuilder
+
+ # ####################################################################################### #
+ # Common Configuration #
+ # ####################################################################################### #
+class CommonPlatform():
+ ''' Common settings for this platform. Define static data here and use
+ for the different parts of stuart
+ '''
+ PackagesSupported = ("OvmfPkg",)
+ ArchSupported = ("X64",)
+ TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
+ Scopes = ('ovmf', 'edk2-build')
+ WorkspaceRoot = os.path.realpath(os.path.join(
+ os.path.dirname(os.path.abspath(__file__)), "..", ".."))
+
+ @classmethod
+ def GetDscName(cls, ArchCsv: str) -> str:
+ ''' return the DSC given the architectures requested.
+
+ ArchCsv: csv string containing all architectures to build
+ '''
+ return "OvmfXen.dsc"
+
+import PlatformBuildLib
+PlatformBuildLib.CommonPlatform = CommonPlatform