From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web11.2382.1686118817074280778 for ; Tue, 06 Jun 2023 23:20:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=bUj5GMUv; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: james.lu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686118817; x=1717654817; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=QzntVbkBO5Blcd0w0HG9uOpg2nvCDDwhKMcwGM5Ao2k=; b=bUj5GMUvFVwjXZZdlweGO7VhDghEiqI8DpBPEC/2STMG2Pi+kUE8ewLy cegSMfksSc+JzlYqA7dYir0vcu/HNtZe0Kil9FhoinRiL8r96wIOTSkgr B0nCjqjRLROoIxNxSMq3Uzoetto9N/sHCyQYT5gU5lEud0erNtSZ7HhRA YW2N5pbBGOWSFbfqHeYom3VOAl2YSFO8kPvByB6MolRkKYoCzHFruRS+5 ItFRn0CnwWn5U0AGrECFMl62RrcMGYlgs5sYZh6tdXsWf2IExXkdAag5k xGR4PvUBQaTi+gq1trSqx5Keb0hUgnFhX4Na7wyu/dg8WHJuTwCDNBMFl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="346510135" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="346510135" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 23:20:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="956075684" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="956075684" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 06 Jun 2023 23:20:05 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 6 Jun 2023 23:20:04 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 6 Jun 2023 23:20:04 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 6 Jun 2023 23:20:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YfMLc/Qk3RnMLajiF0/cmku2vYHUVaJ/VHANqTE5zMB8UAtkAsiDSPARRJxJAbDf/JYOVlnZZDjFu31Ujd1Zz9tvJBJfBY/j7f9pFk0NK0QUoIBrAP0p6LqNH6dh5apl4YiaLEjcIl033R43XFhHCI6LTFZcN/cN9F0KpALVmpNd6d0qMLe9oQ8n+EvzRWseT/o+yjUyePGPjXlFPYAwgZrYxxC2b6YwcGBrAimJIQulmIa4F/ksMmnft3TGuO0c/Ez7mvTynrusfNXhkceNoeQtV/v+j4m6XzYr1VRmH0GFSmL9mGby6HhEReeM+gYydG9p9PFrhfmRoQgr5wQwjQ== 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=W3uYu33HTc3qQbh33vx+HBTJ/lxSLdiWmErP7i5sFY4=; b=PCfQqlg1wZyUDzpd+z+Q75sjYvbW583EJR55gGx9f3IU87H2ELBPPRmSLCDiKXxhaeYU5K3LHBlNx5tzeVOYuRT5znWeoB6dvPazWGPv2TejygWR0XvL/eVUuDaO2nd+XJqnHB6q+DwVrdEA2QZ2zEXFpQDwqQEH+pg42PLVDnWpyUuiDohsMn83MB6cc8NufTj5LQvAeO+lO29Mfh0Sj6iTZYwZ11qUaq1ADEfOjiOynWEulJ3EnMemWgRSN7ptMAjtDuGj1WfCxLGGXGQPJx6nxSs30d+1r2qh1RfNfgY2AIwb1Z634/t/TUfoG1eD5hiVx7IkvXn0h1No1mhSkw== 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 CH3PR11MB7819.namprd11.prod.outlook.com (2603:10b6:610:125::20) by DS0PR11MB7286.namprd11.prod.outlook.com (2603:10b6:8:13c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Wed, 7 Jun 2023 06:20:03 +0000 Received: from CH3PR11MB7819.namprd11.prod.outlook.com ([fe80::6cff:33a5:d30b:9ddb]) by CH3PR11MB7819.namprd11.prod.outlook.com ([fe80::6cff:33a5:d30b:9ddb%3]) with mapi id 15.20.6455.030; Wed, 7 Jun 2023 06:20:02 +0000 From: "Lu, James" To: "Guo, Gua" , "devel@edk2.groups.io" CC: "Dong, Guo" , "Ni, Ray" , "Rhodes, Sean" Subject: Re: [PATCH v1] UefiPayloadPkg: Enhance build script for BuildEntryOnly Thread-Topic: [PATCH v1] UefiPayloadPkg: Enhance build script for BuildEntryOnly Thread-Index: AQHZmQdhN4DbNvCJCk6TXOg7Kg0oGa9+3gCA Date: Wed, 7 Jun 2023 06:20:02 +0000 Message-ID: References: <20230607061445.9-1-gua.guo@intel.com> In-Reply-To: <20230607061445.9-1-gua.guo@intel.com> Accept-Language: en-001, en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR11MB7819:EE_|DS0PR11MB7286:EE_ x-ms-office365-filtering-correlation-id: 62dc2ec4-b9e7-4a79-2d71-08db671f3a8f 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: UZZqRI+XoygwrIXd99ad9h0CbrK/B861B5ff+rtBCiRESh6+lFVCqv8W//jj5SI2NQRcDWDEjZuWBEEM5sJaYs434UL33EDz/p4oMuZEM7QUNmLTOL7dT8fVVNrrWrsu6k8YAgcaryHeCZ9hAEmqAd8i7dtd2gwlH1+lEVdLpzH3TUdmYcAONofze5aSuBOYKmWtFVMKkSWvd4qlQW8oOnk+IgkDsptJIT6K+fQKjsPf9lVMj3JUrgtBS7KwT3DkHC/pgMr0Y8OVVzu06adUGQzJrJoguFyogdGb+iYRpqVEGvwbziNbjUnuDIkxi32jzesaqNp/4668IU5k44qWxS7ORKL/c8chtFX8qs43VRWPhpACSnJPpPYUN5zOt9w1ZaFaO4k/VPEde3B2zGATMxEcZDDG6jMusgV89IPO7+qXl9iskeXRWAPYju1zqoOwBCKjgMpLfNLnbQEzqL0DsS8d2wL4+PuFZr8TGXNlHFDW7cousPCuS+iR9SMcy6noHnmVYtQrUM+h58WCP7RdPuMivXGDGsNsiZ8umbQyiFTlVeCuArHNg5KrmRwGwpwIAKwyBVshL5mK9PJhBI9gwDeFYT3oEBnjsVHqjFO9OwlOpQ2nxJDz9Y0atAlUGetZp5cKPuZ8Mb9uBjv7HzZ3yg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR11MB7819.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(366004)(376002)(39860400002)(136003)(451199021)(110136005)(2906002)(54906003)(38070700005)(71200400001)(478600001)(33656002)(86362001)(52536014)(38100700002)(41300700001)(8936002)(8676002)(5660300002)(82960400001)(55016003)(316002)(66556008)(4326008)(64756008)(122000001)(66476007)(66946007)(76116006)(83380400001)(66446008)(6506007)(26005)(53546011)(9686003)(186003)(7696005)(21314003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2s1nBO4E/iNQwfF/X50hm/TpxyS3axMOYETxQGc0d1B40QRtJ6ncxl8mNyvD?= =?us-ascii?Q?98CeR7xVYKwhdD2KidbZoSAGKf/Xv0fali852643X0NVOalv1pjJLwRDD4qF?= =?us-ascii?Q?N1pc9Z/4ByAzXuWjvs5FSPKQgJQ9rF50y9dXTaHZfy5AD4zCyKI/QQUM4EKl?= =?us-ascii?Q?Q+xUG8AJg/e65CnNy1LesWym1Lgz6gA/ex5GwPmH/DClsP3VXH/sAOJ3axjY?= =?us-ascii?Q?N3YfIJfOL8SxU2NWNQ4Cn3pzO1g2+AZG8xD1DmT2kXVKU1VV910s/3zo4LcS?= =?us-ascii?Q?chs9ky8jDvgzjufK6zu0rvAvwgngw9wflnoy1DdpvevipRgNOS+wBRAUwcAg?= =?us-ascii?Q?jiv0w2Q/1pjU3Q8jnweJ82LIp04JhxFcX9JIgvAT8MDpP7qdAAssPmqyDMrT?= =?us-ascii?Q?iQYenOOWUAUNDX9vcgwXQM8L1s3OSpgN0azHRKgFutPsUKSETVi3W+9XM0gY?= =?us-ascii?Q?vZ/ciSzuyIxwDVbQNxedL96lmcIuo9/dZY0dBpeMiaGvLECBaoln9+o4sU0c?= =?us-ascii?Q?cyxJ4vUw+XIzgs/wza/TfMe+81lUSujfNCgHI2FMaa6CJJs3QY35r8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sAD5hzjZGSB4J1rsb28eigdEa0QA1FR0etCFSLiqM+ClA9J?= =?us-ascii?Q?aUom8oiPi26e9YJKyL13C0xA3afBzOlTdNz9smuiFP4IFuUJ3MCwbDfpRW5u?= =?us-ascii?Q?KJ6I89dAQKsWDso4Iho=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR11MB7819.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62dc2ec4-b9e7-4a79-2d71-08db671f3a8f X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2023 06:20:02.6913 (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: 51UD3xc7glebhwMq5pJYVCPpU9whqR9UNIdRFU3BoNWPEampZ6Qvf5U+yA43X7VT77akBgIjYoLvGsF93lNizA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7286 Return-Path: james.lu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: James Lu Thanks, James -----Original Message----- From: Guo, Gua =20 Sent: Wednesday, June 7, 2023 2:15 PM To: devel@edk2.groups.io Cc: Guo, Gua ; Dong, Guo ; Ni, Ray <= ray.ni@intel.com>; Rhodes, Sean ; Lu, James Subject: [PATCH v1] UefiPayloadPkg: Enhance build script for BuildEntryOnly From: Gua Guo Currently, have two command for pre-build binary support 1. --BuildEntryOnl= y: build UPL Entry file 2. --PreBuildUplBinary: build UPL binary based on U= PL And these two commands should be exclusived, shouldn't have chance run it i= n the meantime. Case1: Build UPL entry with CLANGDWARF python UefiPayloadPkg/UniversalPayloadBuild.py --BuildEntryOnly Case2: Use pre-built UPL entry and build other fv by VS2019 python UefiPayloadPkg/UniversalPayloadBuild.py -t VS2019 \ --PreBuildUplBinary UniversalPayload.elf Case3: Build UPL Entry with CLANGDWARF and build other fv by VS2019 python UefiPayloadPkg/UniversalPayloadBuild.py -t VS2019 Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Gua Guo --- UefiPayloadPkg/UniversalPayloadBuild.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index 416946a431..ecc25dad83 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -187,10 +187,11 @@ def main(): parser.add_argument("-s", "--SpecRevision", type=3DValidateSpecRevisio= n, default =3D'0.7', help=3D'Indicates compliance with a revision of this s= pecification in the BCD format.') parser.add_argument("-r", "--Revision= ", type=3DValidate32BitInteger, default =3D'0x0000010105', help=3D'Revision= of the Payload binary. Major.Minor.Revision.Build') parser.add_argumen= t("-o", "--ProducerId", default =3D'INTEL', help=3D'A null-terminated OEM-s= upplied string that identifies the payload producer (16 bytes maximal).')- = parser.add_argument("-e", "--BuildEntryOnly", action=3D'store_true', hel= p=3D'Build UniversalPayload Entry file')- parser.add_argument("-pb", "--= PreBuildUplBinary", default=3DNone, help=3D'Specify the UniversalPayload fi= le') parser.add_argument("-sk", "--SkipBuild", action=3D'store_true', h= elp=3D'Skip UniversalPayload build') parser.add_argument("-af", "--AddF= v", type=3DValidateAddFv, action=3D'append', help=3D'Add or replace specifi= c FV into payload, Ex: uefi_fv=3DXXX.fv')+ command_group =3D parser.add_= mutually_exclusive_group()+ command_group.add_argument("-e", "--BuildEnt= ryOnly", action=3D'store_true', help=3D'Build UniversalPayload Entry file')= + command_group.add_argument("-pb", "--PreBuildUplBinary", default=3DNon= e, help=3D'Specify the UniversalPayload file') args =3D parser.parse_ar= gs() MultiFvList =3D []--=20 2.39.2.windows.1