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.web08.35049.1656658878367892920 for ; Fri, 01 Jul 2022 00:01:18 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=K7y1agob; 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=1656658878; x=1688194878; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=wXafPOo6bDtlXAXLd9J1aLDXnY9X/CWGxf+hckbwtQ4=; b=K7y1agobzCI8XZD0TVMbpP2CiT/vhYD002pFpJ42ekTlxthv1OUf2gQp biJ7WEP0721dOtzu4rPKH+sh1Wud+/iUfpMBS4Q1P2ArPxUCvpQ4D78uW rHl/mdqwrvmudICfGO/mWxkBlGG8hhae5UuBUfddKpMOmzghyvfQWiihi 47jrSKIFLqfiqiL8izBzhjrfIZ6ZWNFJj07HA2uOPHbrqjlN9JkbCemYs DiLkGDRdQ17LUJUeZqkanuDktuvUDzrNRcuqcihJZ/D89n0AcNWczZv5o HB28hgLPleLKQkIajwXxnUb+08eRhtnvgshUIn2y0d2lG+RIijPygDsTI A==; X-IronPort-AV: E=McAfee;i="6400,9594,10394"; a="262972273" X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="262972273" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2022 00:00:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="768402060" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga005.jf.intel.com with ESMTP; 01 Jul 2022 00:00:46 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) 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; Fri, 1 Jul 2022 00:00:45 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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; Fri, 1 Jul 2022 00:00:45 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Fri, 1 Jul 2022 00:00:45 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mLcUpZDdlH5IDqNrtGTEMFpbEP3f1doMmtriEjmmBYO6EwnfKrWYm+Srx6Xh9vXkW2GrOACm9iTZawg7nznhZ17ZRZ8lLqGbb9QowENxF0kjhS4RxUp5OzX6/WoHzh2FElNaD1YWYOcwd/4+we5ffGtPzR9jxXZAkexj53K8ct5e7KKse2Pxx2NIsj3ntsrSEocGWmv8y5rLrbVIUExwHCMTP2O4yc2uqp3dMEYfRmOlwGmASa1oMg3HVzJUpDBlR+3pRsLV8W8ZR0nv0vjCMu3lwtZeo8edPGSEcf9eD8rsSDF0DexJeq6ul0OKIskuv3lht//gcCan8ig6R1ncPA== 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=y6leaprwg1bcg6x4OGLmNh8JD1eWvAGavOtoTn1WPu8=; b=IuoOhE5MNJhDabAZPRvKdAs/VBK6KZZDYRowjIHnzHIm+iA3vI3BEf1Zz2nWiwHp2FImPuMyIFnE0brj0iYLt0Xl8NS5a7NCBSsxR93OLap7st6snsk1oHS5uLnLB6pJH/s7bw/k2vAaXQB0QQ7T/FKwlq9A4nO+Wxaf8U5/V5Z/ZiszvKaRo5zwfuRf9O9BH8nVuJDQzjvz8+HYLtLovkTlahfENZnlE8fNMHgsViPSHwq/X63XCow0ZoIWFYyT1YZg4uZkWgETZKXByK0umfn45faFqbIgjGx2qD3OXXOe8w/xeMD0UtgAnEldn2Jov9UeDBZfe9oD5nEP2X/YZA== 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 SJ0PR11MB5199.namprd11.prod.outlook.com (2603:10b6:a03:2dd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15; Fri, 1 Jul 2022 07:00:38 +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 07:00:38 +0000 From: "Yao, Jiewen" To: "devel@edk2.groups.io" , "Yao, Jiewen" , "Xu, Min M" CC: "Aktas, Erdem" , James Bottomley , Tom Lendacky , Gerd Hoffmann , Ard Biesheuvel Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py Thread-Topic: [edk2-devel] [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py Thread-Index: AQHYaE+Y5iMP8naUd064c7K4BVX5p61pUVtwgAAOeyA= Date: Fri, 1 Jul 2022 07:00:38 +0000 Message-ID: References: <2491a7b24cb790f14b4155798d4be3bfde579cfd.1652614321.git.min.m.xu@intel.com> <16FD9F9CF906220C.5468@groups.io> In-Reply-To: <16FD9F9CF906220C.5468@groups.io> 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: d0890b06-96c0-48d4-0cd1-08da5b2f67aa x-ms-traffictypediagnostic: SJ0PR11MB5199: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: wePkWvz4LbhQPMzoAj9hKIE+PN2TMewuckumBBG8HDvnAQaYEnjfuTpKLqfR5XFQgOK/OmNzbf35LVKEQg4Zt84Bpep04+7vEu2/kkVOoaAdIdE4XNOFy4+Oz23209l/AbpkWBWVf28fZVpy+fwvcxEvb6juU6NqTmo/3/iGk/foyGMyqV+mXLSQi879+avSptGadwQV8sG6HlunkzDLjLrg3D/BfYoPv8rAF+caRtOKDN5vuQAqd2gZyD4jexS1jO4VUX57HDounDOh6blmvqq+Z5lt4dOrVsPFkZjuhSAqwmmorfRUf15C0OyupODyyj0+PpLCaD6kYapm36U0yFKAvpnOtLZWRKeMGTAC5cYk95At+hb/UfXLU7pnxjO5XBdBoBu81bcyHJXzS4bXRdJKsqS5nWGLM/IMqekKFuef5gBF2NTgKBRLPGMoJKV0RKYZE+6Ysix/pun2fxxRni4nDmsJ259Q6KVUqtYFHr8+VCuuh3pSahTVbrqpq3Wm7Tt4yubvSVEO374dDwHluaGmWmEm4NEbTPUBApgVFfgLr4NQK5L9bsgHA/8fyd7HcvhfdrukYOWifdoy1MOeAoganJCyGq5Ndgz41ueehjEyrBXEpnknimNkEd93m2BYoMP84OmukqVvhTnDESLWmedLLIPZKdwbRRNJlNu6p1d/ZfKuINp23V0r+Z102l/SxIBkfw/7iI7fdYsdB7WjG/LdnLyWeaw70SdWzJwXlOlTJk+konT8sMmvUZNoyknYVQgWRwX6OkQUpHuOlSaG9j7s/RI4ELxhogjVAmMiQS6eiGd52K7NrEhB6hOW7OmM4p96x3KoCAfqDPTNeIxnkOfNVY5HV0+jciwF/rfTYhVqp27VcsSvg5lLjo2MDHeA 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)(396003)(366004)(39860400002)(136003)(66476007)(66556008)(66446008)(64756008)(8676002)(76116006)(66946007)(55016003)(38100700002)(5660300002)(316002)(54906003)(110136005)(6636002)(8936002)(71200400001)(83380400001)(4326008)(966005)(478600001)(19627235002)(45080400002)(52536014)(33656002)(9686003)(26005)(53546011)(186003)(7696005)(6506007)(122000001)(82960400001)(41300700001)(38070700005)(2906002)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?UUfHxLyJ02qSp92QCtMtbiNS0ekVeZD5/RePMt/hWnZ9nAZV55Kg9BgDzzb2?= =?us-ascii?Q?7V6sUpBY45YXE6tWS7YF9v8lOdueNB23TVycxIEfrrevaQj/qDK4VVqLfzFV?= =?us-ascii?Q?z4SDBAtvUm4/Un9gkVKhGKt5zlN1t4o0gQGKSIL4+JozG0+GwWDg/A9oSI6u?= =?us-ascii?Q?iSuNjGqOQ/JYWtR3Eq2iWrHzS3b6AhO6vXip6md6h0aWWIfIy3Mk4yexv7Zw?= =?us-ascii?Q?mcczVlfZ0M+mwSPkxHrzIZF0j/xdVqazMipFjK7WeuLHDOfRKMVu6Q0EAAOO?= =?us-ascii?Q?y5xNNYvB1zGkMfeZWBy0qhSbW0r2BE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TYJ5QANDleb7Tgl2kYWIoCSVkhpS8pFXcvNiQgb2Ya7j40ffrhw?= =?us-ascii?Q?FD9Bji0q01oXtCKU8SEJ6FEQOZTc6m0DvePShaNyK0lPPzKQyZgR7QpuRTOW?= =?us-ascii?Q?Cf7QnuwCUiLxWqbq2S7fSts+clhxYaPcxQ5LEUjsm6lD7gqbPZ4jF1TjF1Nr?= =?us-ascii?Q?SAuiABgkqXaxdxCIYaw8Y39JpqytuJCN5Y8eaQPyc4JesndI69pcobFVrj7N?= =?us-ascii?Q?w0HcaENot/hEJoNSNWLibms5osBd+ReN1gkmw13bOOSN27p4LPnAgIvNRBkX?= =?us-ascii?Q?UlyIaLT7hVVXJ8AYhx6+XkDC59oAR0cusFiLe3Isc4zXp08QScAnxIz/s2iR?= =?us-ascii?Q?Vx2mibkgTCqegOx+WJw3VHuyf4QPUAn9airriDv8?= 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: d0890b06-96c0-48d4-0cd1-08da5b2f67aa X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2022 07:00:38.6822 (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: EhnLJSyWGIvf7T5y9YIIN9Dg7egrzj6Rzk7m5SfASo1WPO3fL3TvAf4spuXEDIb68bVMknM4dr6vkKCya+cryw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5199 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 Merged - https://github.com/tianocore/edk2/pull/3038 > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Yao, Jiewe= n > Sent: Friday, July 1, 2022 2:09 PM > To: Xu, Min M ; devel@edk2.groups.io > Cc: Aktas, Erdem ; James Bottomley > ; Tom Lendacky ; Gerd > Hoffmann ; Ard Biesheuvel > Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg/PlatformCI: add > IntelTdxBuild.py >=20 > Reviewed-by: Jiewen Yao >=20 > > -----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 > > > > Add build test for OvmfPkg/IntelTdx > > > > 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 > > > > 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 > > > > 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 an= d 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 >=20 >=20 >=20 >=20 >=20