From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web09.35219.1656655734005557028 for ; Thu, 30 Jun 2022 23:08:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=k8VWn9Uh; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656655734; x=1688191734; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=qF4s2s2huyjJYakCQ1UxPcpT9DjjnQIauKfnoV9wHhA=; b=k8VWn9UhNUVPeEkl71SKS5NXudXCqHiZs4qwZobO7p46hKun2SYe0ffY QVi7w/O2MKOC+9f+6rq1jkbIHvrLxqX2BuRoxtiESqX+itamiwZTcl3uq Sfxow0s8YV7wTrTNTjL3ntsOGftdqxrFF5A9XFsSTcVXyjlg7HfRHiaZa Xhg2byKHQHcOHs2D4BhMYpp36fvP6p8m6NHh2bGRdmD245aFpfNoCd2GD CQQozylHFJMuK9GpIevXgbwWkkzZKf0u7H90V+tS959b18O+k8cpk+Ebe 0k2K2bxTR0nDANQYSBnQsImlHI1R0GOseuz6kC/5SXcArfPPquLtC3sEi A==; X-IronPort-AV: E=McAfee;i="6400,9594,10394"; a="262963598" X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="262963598" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 23:08:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="681278258" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 30 Jun 2022 23:08:48 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 30 Jun 2022 23:08:48 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 30 Jun 2022 23:08:48 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 30 Jun 2022 23:08:48 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.172) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 30 Jun 2022 23:08:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Si9eIPEEfn4zVUE/IsjR/XPkmL10mytwSdK4yTOZHSJH8bdjBbaRf6QXuHrPXdMRQYvhkShOaNoQe7c211gyJgcoK+7xBgiruVIIuQSQ1++uLx9MYNtEfK4LKS8nt9Luu+3TLzE8Ho5xNtmR4owrjfGNJmlHUIZxuMXXGAoZuMbgPr1Cc2MfkDgAAOeLpeeHKo74VdhCccjuire+Ne/XGkdh42ByuEngznupd5TMberTP7g0KeDBSsa5CLN+lRhw2MxM/bBPYBbdi2VRoonTS3pA4/g2Uzv+sk7fUuLwE5BJKYVA5bRXeMlcN+6qxZk+s0Suns0h2odd9OYaQUMB9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z0XFzoCepSnteFFHOOq3cLMJzt6XPEOdE4kzsuwtLYU=; b=gYmPLBo4sV4gG8LdZXa8Cl7l5pR+XiApQGBBmCZq+fygEf5osZgLeff8HwwsfeWLogGx9fmkvv7G0ZD+tBwhIvf/bWN68wkizZtvQnW1j4xn+KWMRyPgrUWmTc47APqImah/XhEMbiGGFDPbEbV2jiqQibr8HspDv/WfVc1c21Wkj56XfiMqdo9IOcFa2wu6V3FI54KET6SH4i8MMhVvPQEeDduswY4sZ2xAytc9RELvPVZFq2GoRW/Ap/0o8SFDMMmcbKyC696iwoE1n6GC/2E28Sh+YJxCfcRnKspA3ZpUmY42sK3DsHcJoUruz03MPRSB8YQfcg9Ava8X0mWhpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by BL3PR11MB5747.namprd11.prod.outlook.com (2603:10b6:208:354::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Fri, 1 Jul 2022 06:08:45 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::21c8:d7ec:9943:9d06]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::21c8:d7ec:9943:9d06%5]) with mapi id 15.20.5395.015; Fri, 1 Jul 2022 06:08:45 +0000 From: "Yao, Jiewen" To: "Xu, Min M" , "devel@edk2.groups.io" CC: "Aktas, Erdem" , James Bottomley , Tom Lendacky , Gerd Hoffmann , Ard Biesheuvel Subject: Re: [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py Thread-Topic: [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py Thread-Index: AQHYaE+Y5iMP8naUd064c7K4BVX5p61pUVtw Date: Fri, 1 Jul 2022 06:08:45 +0000 Message-ID: References: <2491a7b24cb790f14b4155798d4be3bfde579cfd.1652614321.git.min.m.xu@intel.com> In-Reply-To: <2491a7b24cb790f14b4155798d4be3bfde579cfd.1652614321.git.min.m.xu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 21e45108-d2a1-4477-ba82-08da5b282811 x-ms-traffictypediagnostic: BL3PR11MB5747:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tlydyz/1SEVivqxixqjVQP0it+/U7NNcQUDAFmOvKqZkStOXPFmM53Ax1teK6EKMaCZzdtX1wtlat1Im3joaGt6hNY5S6xCp4LIm/Gex4XGfpKhOoZWwUXQ6poAj1wgPSS+tEUOU+F2/+85vpWOaSiGBB/Y/Zr5K9R/UlZ/gO1hIaTLb7me/tC3/lNLSaGPN8hMbPyxB2Zh+vabERD5dLCfcOzxHUs3wFO5rgMeGfyVUhsEDwGL1/lJk8wQSdqyCooqhP5e5HK+3Ldxp/U321akb9aNdv4/MvBBCzWPu804sSccnNCFV2pobVq0JooEEOygXM6dZ81TgDfE+hYyR1SM5Y2U3AVLZSsYPdIUqYyDXwajSgskayN2/N6ZbOg5ngO77VrQ38EA8lrfDSL/VlvA3pji29Yx7dcmgj5Xpc204ldEqwUxNB08MggS6vXs8LJneyBTYFXFAVRXgaK1rmseidjC1Ty37zbZYsIaYaxS2xHEImGkRFkHx5rlu9MS4X8/++n/s+FaP7UaYC0JLxfHDNXeDfm3+W1LgBJq9UAZ1Zz4wRS64olvwdrcYxaVYBSD4UDMnLaRytzcI6tX2aTbTHsoLoc0at4mWFfWsIy9Ioa63gLFl0YFa06QnOorbWxdVWiDG4FPTvpEQ4DQYFK0DV9TCZCGf0PilXKvQ+Bk21aeWVrZbLVHeINLkZytd63jMclwcV1YwvgWbIUd4Zu4taWXMelXbHXrrySjC6IfbS27JCf7WkHJbDNLvXylsEbcHS3lt/pfaFECklv9JymoAa4hC/JXLdAKG7S4S0L/Jk+mnP6u6F9HZxMCFPwqN x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(346002)(376002)(366004)(136003)(39860400002)(396003)(5660300002)(41300700001)(26005)(86362001)(8936002)(55016003)(122000001)(19627235002)(38100700002)(9686003)(71200400001)(38070700005)(76116006)(33656002)(8676002)(82960400001)(66476007)(478600001)(186003)(52536014)(64756008)(316002)(110136005)(66946007)(2906002)(66446008)(45080400002)(53546011)(7696005)(4326008)(83380400001)(54906003)(6506007)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qJqFpKA3ASUITTqCiL7LCj+IbqAYCkrEStiNTZASJ3uXJoUKqnBBrNryWQBs?= =?us-ascii?Q?h3rxzg3U4UPSbgoTuMwslmA1q4PhPGaRmmp0wninFTqhpX+luY5MPMxUUGGV?= =?us-ascii?Q?RE9Vi9wJB1AudQ0fnPl6GDog3YMcYa8K4Yez3eSxABXGV8d/aRHduKz8ZCtd?= =?us-ascii?Q?IOKYOtsC2dz+R+fKZkvKiqG9KbqpNN1RSC1ABsMduEsKDyhqZ5UHHiMM9lcw?= =?us-ascii?Q?x/v2O10XNB9AUcadzLwP4/88KypbxWauRbhPe4tcRv223E1g93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Jb9bDjWJwmSVn/we+12vBJadEROxemU8pfT5A86y3T8IO9t?= =?us-ascii?Q?ofxLNh/avmRbcNOxSTKSNwLEa8kAXpfuPxi6dlDxFJlVruRgczo59MEXmhfB?= =?us-ascii?Q?iRcoNoWTGjTy5FIrK8GmFRkLNC1XAVPeSktg/BFEtU30y2jkKSy+E0UHnXPT?= =?us-ascii?Q?54nJ2U6CUkYFxB1R/SJOJjXorFb6440uEM5gIQDChFwQnkyub9rF+sBhgQ05?= =?us-ascii?Q?3BK/ZZYMSDsaTCpXST/XC9v/voRJnFYbkftviVSNkLk+BykRtUDCBLeo2ogj?= =?us-ascii?Q?SdYn3C+AaC9nwp8uoxtuZn5ZQUy82tggpAfOmLVlnnN40UQnHiO6U01bBqQx?= =?us-ascii?Q?w3tfhoq+NT1ProntR4dysnmmtE8jUduJ5n57yiMe8T5qJFnM5ar+xIxhlPG+?= =?us-ascii?Q?00AbsgrQ/6Qzo8FDzAtypmlgx3uq4NrScGZhqPlb?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21e45108-d2a1-4477-ba82-08da5b282811 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2022 06:08:45.4947 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MS1k7ETSKMhHQRtbPEzjxvgnskNjvzgXRCFnpAOfMlazG2Q6i7CPD2aAEnlJH2CetWfQ0CxOzWipx1J9dq/8rA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB5747 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen Yao > -----Original Message----- > From: Xu, Min M > Sent: Sunday, May 15, 2022 7:33 PM > To: devel@edk2.groups.io > Cc: Xu, Min M ; Aktas, Erdem > ; James Bottomley ; Tom > Lendacky ; Gerd Hoffmann ; > Yao, Jiewen ; Ard Biesheuvel > Subject: [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py >=20 > Add build test for OvmfPkg/IntelTdx >=20 > Cc: Erdem Aktas > Cc: James Bottomley > Cc: Tom Lendacky > Cc: Gerd Hoffmann > Cc: Jiewen Yao > Cc: Ard Biesheuvel > Signed-off-by: Min Xu > --- > .../.azurepipelines/Ubuntu-GCC5.yml | 11 ++++++ > OvmfPkg/PlatformCI/IntelTdxBuild.py | 37 +++++++++++++++++++ > 2 files changed, 48 insertions(+) > create mode 100644 OvmfPkg/PlatformCI/IntelTdxBuild.py >=20 > diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > index 6dec90d9fcaf..7160d95f7e04 100644 > --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml > @@ -160,6 +160,17 @@ jobs: > # this build is for xen not qemu-kvm > Run.Flags: "QEMU_SKIP=3DTRUE" > Run: $(should_run) > + > + INTELTDX_X64_DEBUG: > + Build.File: "$(package)/PlatformCI/IntelTdxBuild.py" > + Build.Arch: "X64" > + Build.Flags: "" > + Build.Target: "DEBUG" > + # no storage supported by microvm build > + # can't boot to uefi shell -> skip test > + Run.Flags: "QEMU_SKIP=3DTRUE" > + Run: $(should_run) > + > workspace: > clean: all >=20 > diff --git a/OvmfPkg/PlatformCI/IntelTdxBuild.py > b/OvmfPkg/PlatformCI/IntelTdxBuild.py > new file mode 100644 > index 000000000000..4b19630ce3c7 > --- /dev/null > +++ b/OvmfPkg/PlatformCI/IntelTdxBuild.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 "IntelTdx/IntelTdxX64.dsc" > + > +import PlatformBuildLib > +PlatformBuildLib.CommonPlatform =3D CommonPlatform > -- > 2.29.2.windows.2