From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.6336.1641904327452437243 for ; Tue, 11 Jan 2022 04:32:09 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=bl7ZN4QJ; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: sebastien.boeuf@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641904329; x=1673440329; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rnhul/2VEI2/FgrN0a9P31mdiVuUawjRG32uJFYeRnM=; b=bl7ZN4QJBHpVvzcXeFalNLEuCBQx1oYcQ8KHkKxdtNVoPr9+p2AIIZJQ e/wNNAf+8JsbepVSYyq24heggsOWCpPMX0ETwx04t1WBkIw/m1VV36Ljt 5kdJ/i/2+ca2QMaMbppvfAAztwASOk9lSChU79ewUWMOCmdVvrfv+hoGi VeBAqJz3QdNT6aF8ZWkVjVDkqZjR5GjRZjfHz/7KzIUTAvWS6LXPQKPHy j0pUSoRCRJTRdcirYqoF5l3Kvur0vwXCmGj0Ag+0qY3mHoZgFyK2YUlem cwjep1Yyh9rkmLvFMxEunUaBGIvVtdxXYDQZOis0Ts11maclWofpXFv4U w==; X-IronPort-AV: E=McAfee;i="6200,9189,10223"; a="304212460" X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="304212460" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 04:32:08 -0800 X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="474518267" Received: from ojocher-mobl1.ger.corp.intel.com (HELO sboeuf-mobl.home) ([10.252.28.2]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 04:32:06 -0800 From: "Boeuf, Sebastien" To: devel@edk2.groups.io Cc: jiewen.yao@intel.com, jordan.l.justen@intel.com, kraxel@redhat.com, sebastien.boeuf@intel.com Subject: [PATCH v4 11/11] OvmfPkg: Add CloudHvX64 to the CI Date: Tue, 11 Jan 2022 13:31:35 +0100 Message-Id: <724b3d4bed3c8de07efac15581fb63829a5b8b8f.1641904253.git.sebastien.boeuf@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: Sebastien Boeuf 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 --- .../.azurepipelines/Ubuntu-GCC5.yml | 9 +++++ OvmfPkg/PlatformCI/CloudHvBuild.py | 37 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 OvmfPkg/PlatformCI/CloudHvBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/P= latformCI/.azurepipelines/Ubuntu-GCC5.yml index 3fed8e0d06..6dec90d9fc 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -133,6 +133,15 @@ jobs: Run.Flags: "QEMU_SKIP=3DTRUE" Run: $(should_run) = + CLOUDHV_X64_DEBUG: + Build.File: "$(package)/PlatformCI/CloudHvBuild.py" + Build.Arch: "X64" + Build.Flags: "" + Build.Target: "DEBUG" + # this build is for cloud-hypervisor not qemu-kvm + Run.Flags: "QEMU_SKIP=3DTRUE" + Run: $(should_run) + MICROVM_X64_DEBUG: Build.File: "$(package)/PlatformCI/MicrovmBuild.py" Build.Arch: "X64" diff --git a/OvmfPkg/PlatformCI/CloudHvBuild.py b/OvmfPkg/PlatformCI/CloudH= vBuild.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 =3D ("OvmfPkg",) + ArchSupported =3D ("X64",) + TargetsSupported =3D ("DEBUG", "RELEASE", "NOOPT") + Scopes =3D ('ovmf', 'edk2-build') + WorkspaceRoot =3D 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 =3D CommonPlatform -- = 2.30.2 --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, = 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.