From 5302bd81d9ba0c9e7f2371a81c438ec919ec8e1e Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 11 Jan 2022 20:31:35 +0800 Subject: OvmfPkg: Add CloudHvX64 to the CI Adding the newly created target for Cloud Hypervisor to the CI, validating it can be properly built. Acked-by: Gerd Hoffmann Acked-by: Jiewen Yao Signed-off-by: Sebastien Boeuf --- OvmfPkg/PlatformCI/CloudHvBuild.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 OvmfPkg/PlatformCI/CloudHvBuild.py (limited to 'OvmfPkg/PlatformCI/CloudHvBuild.py') diff --git a/OvmfPkg/PlatformCI/CloudHvBuild.py b/OvmfPkg/PlatformCI/CloudHvBuild.py new file mode 100644 index 0000000000..088b5b7122 --- /dev/null +++ b/OvmfPkg/PlatformCI/CloudHvBuild.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 "CloudHv/CloudHvX64.dsc" + +import PlatformBuildLib +PlatformBuildLib.CommonPlatform = CommonPlatform -- cgit v1.2.3