From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.7300.1627362694131890286 for ; Mon, 26 Jul 2021 22:11:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=lR8sJF5d; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: ray.ni@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10057"; a="212357833" X-IronPort-AV: E=Sophos;i="5.84,272,1620716400"; d="scan'208";a="212357833" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2021 22:11:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,272,1620716400"; d="scan'208";a="416766393" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga006.jf.intel.com with ESMTP; 26 Jul 2021 22:11:32 -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.2242.10; Mon, 26 Jul 2021 22:11:32 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.2242.10 via Frontend Transport; Mon, 26 Jul 2021 22:11:32 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.108) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Mon, 26 Jul 2021 22:11:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kRrGaExHEHZ32nviyJOab8Y253RdyIA7dSXOtP+Tu2cV+epxw2c1Ho7paUWs6kIp3SXgDSiWebMifeCDyLl3wIV7l2RZiyfCKitbwIUHRVNE2XJVL1YQcMAESp4DXdzDXiSdWyXI6Wzw0YJcrE3x/GdozlEIFfL2GRzUP9cj6WcyFVt6IWFn5LGkL3HnUBYWLgqcqVo5u8vSZeE+t4dhddMijQFB9pniTAwInalERODyPZyoBF3FTvPegTxjoJU5g4RF8ZduHG2Xoh0c7kEJDMVkB+AjDLE5fXGhmtnJ0F8nBHtNlTLJZQX32n20tVLN3PUPETsltL7ICoRkdqcEgA== 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-SenderADCheck; bh=SlEfboy0dvl0fpMU7aWmx+mE0kUV2oNXboTVr9VxbY0=; b=En7Lhe8IiG9PkSjqqJ5vae1KOqKLHwwAcRKg9doI8RHPX9jbpG6i+OZd0qpxektdEiofHoZ+3t0uugCdKppCN8XttANkLS9lNamqNJVyUCTYAJdlK6NhNTcj/iNoYeJeT2/uMdkBWlxcBnae2IylzQ9lF/IilX+KPg7BSt3K70Usg9BOlUlPQDtiD8TNOYKyBJge5hM+osocDYnmDL5GiprPiOlzySlVeJ/WdL7GvI9x4IRCRqS19eWewc6pCiGMg4ktTf+EChWhNjfhXsNq3l1zOU7vOIBZy9yVEPTNZrROfpkIdw18JcUZJnoKLP6GUhKauZ1k5fmoUA7EvWrX1g== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SlEfboy0dvl0fpMU7aWmx+mE0kUV2oNXboTVr9VxbY0=; b=lR8sJF5dKtwMrpwJNOlIVGs2vJEYKeSR5NwJ0eMHsGsDBgSq91//Sgpqp2MCrvabYcPV+bwVeIyqW/+vcise1Tkp0qC7igHkZP873v/3yGD2yehZ6+9qJpxZQQ8ZT5qPmQVsguZOQxsz11H6RIccWhcBdManT3h8GeOOfQhAPro= Received: from CO1PR11MB4930.namprd11.prod.outlook.com (2603:10b6:303:9b::11) by MWHPR1101MB2222.namprd11.prod.outlook.com (2603:10b6:301:57::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Tue, 27 Jul 2021 05:11:30 +0000 Received: from CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::dc21:42bd:8553:2869]) by CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::dc21:42bd:8553:2869%2]) with mapi id 15.20.4352.031; Tue, 27 Jul 2021 05:11:30 +0000 From: "Ni, Ray" To: "S, Ashraf Ali" , "devel@edk2.groups.io" CC: "Kumar, Rahul1" , "De, Debkumar" , "Han, Harry" , "West, Catharine" , "V, Sangeetha" Subject: Re: [PATCH v2 1/2] UefiCpuPkg: ResetVector Tool Support for Python 3 Thread-Topic: [PATCH v2 1/2] UefiCpuPkg: ResetVector Tool Support for Python 3 Thread-Index: AQHXf554yTlx5TQ8SkeLlMt6fEf5lqtWTGtw Date: Tue, 27 Jul 2021 05:11:29 +0000 Message-ID: References: <20210723084023.22157-1-ashraf.ali.s@intel.com> In-Reply-To: <20210723084023.22157-1-ashraf.ali.s@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9a26f964-e3ae-453b-0834-08d950bcfe61 x-ms-traffictypediagnostic: MWHPR1101MB2222: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:820; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8ATA0MqSlNhkHcFC7rLI2T4eAqaf3rQuA32I7PtNY4OWNcqZfVwNLRSUXS5uUwto6xs05B/Ardz052OYVmfbw35C4+JEvAi28OrRPhxHfm2+CqJCaRFU/hUqPzmMpbbhYtF4I0VwPFkS2zr7m6Xk7L0e5Vnie073RT36IwtuzjETWU/AdPxMFxrwqApQmEGV+zM1ixmwuKky8s1ibIb7lstqj35u7+hHOuZHtpQvGuAldSpoX388UD+I7P0c5e+loJcWBJjFi1wyKPwewuSLGebNAaZC/4rn807b8hgE8HUUQyCz0pob0i+kxhnRyRR4lgHb7DmshJl/1Y2bILKA9ujTlTQZ3Lc8pvYIMfDgIf7Mb3E0xJSOWmlJMf1v+wF9rSp2pZk8BxjmG0dMrpNCp+/jW+xdfwblEFKX4Fk2O2BlY3Gk7hx52rX6FN5JZM1HjaJ9TlcmQhDsyoWPpUZxDBfrBPwcpHavOMxhyLYIMcSoUdgKjd4+D0ryNlyrjUgbjeiuILzhA6f2+/MUxhhkaNif0V0cPhLqH6K9sYz7nvBooCUCfGk1GM7U0hF9uh2IsBkLyTfsfFttR6IFfC3ZWHIy9PksBi5jmQDiDU/WqrfUozbSOhG7KkSaPJlHWX3O1tOhLAzOgrkB1SkuTeIUIzY6BXBMlgWFAEQvB9zr1n7Rn11UOyWK3Sk5ivsH59db0QDItEUMq3KaLdhJZjXOExNAvb+75x7NaGYNLVzo4dZ2OIKXQ5iC0olMF5sBipPaOmUDsDCEm+coPsh/gs9ouV40dsavi2qS6oTRbXmLniw= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4930.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(5660300002)(86362001)(54906003)(33656002)(66556008)(8676002)(8936002)(508600001)(6506007)(83380400001)(52536014)(4326008)(66446008)(66476007)(66946007)(76116006)(110136005)(71200400001)(316002)(186003)(64756008)(19627235002)(38100700002)(122000001)(55016002)(26005)(9686003)(107886003)(2906002)(53546011)(7696005)(38070700004);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?U+S7ygEX63hOQORQATN3UYTglL/McRulOi0vXw/LYIZ+I8q+Z8OxHomldUYr?= =?us-ascii?Q?PBZujXe7mxGVAfRH2xVAGXPnnuHdRvr76+jHx4f/yHqWvBZRAMv0OdWjBXBy?= =?us-ascii?Q?sUV0BlMjD/JFHhu/V7I9dGbzcQADWaQNSBavAycCxBp5tkgZdZnUtK6c+93H?= =?us-ascii?Q?FKa7hai988IzijwlzU0N84QoVoCCBgjKhq91KEMI0Uk+2W1OSb5KeFv1ZLvm?= =?us-ascii?Q?nYJ+qTbUZSSsF7UleFx2ZKYzaDVWRkCddX3UIwVSweX7JdxJrd7gHALVrmuP?= =?us-ascii?Q?IVTMcT0+0ZIIfWiwntJvGQauZvfByz9hjLHbwrfnnlZcqHynK0S0W+FicGMA?= =?us-ascii?Q?G3BJ7uPbuliOyCpnpSoS3S2qZvspI/mxfBKKJltUk2jbwn0gerir2hv0/+Xi?= =?us-ascii?Q?vzE1UflJeKZh8iz3SxcmsBCQJjKubO9ZVQvjyoK1dYsMvh3CcbG7yrpj1Rax?= =?us-ascii?Q?cf95p+bTwr6KvyvxVsn6ahHJCXOj/aqh2xsd64Rc2zVkhVz8Lep2BSW9Gyv1?= =?us-ascii?Q?V16VO84r78DFYxM+LFM9WYuQsbRpfK0fQBB/4+5GE8e3vjrkuCfj/v9TWiUu?= =?us-ascii?Q?P7Er1I+lYG9akxEhru+kKuisk77ULQ5+ZVm6G5tIXfEqRFAnCWsipJLC48u6?= =?us-ascii?Q?EVnNIuUzFWLBJLhO5AXX0b1kuK6lqan7rWp/drfx7SJuba4QzU1OH6jIZDk4?= =?us-ascii?Q?VikscfmCx8kl5g9KqJXR9PyoPdv84Act05sRgPrspYClAdSFFLPfKVo7ahfA?= =?us-ascii?Q?1IUjFUcaVHd3bH/pvvQTACsJplDoV7m/PXBkSCPAQ4whpo58hV09eCDjdmu6?= =?us-ascii?Q?IJrD+uQggjYRXprKpmEIR0EQI9KEyXSJezahTIYn+S0lDaoiHfvx2Db29Aif?= =?us-ascii?Q?MVIYNCPi/jXGrnjbK8PDXYXCqLzF/gMjK8RZRsnz4cBkaRqTNWvUu0n5Oee5?= =?us-ascii?Q?gmf/Ozv/EVpt3H1LwpKxhec0cK3lL4asAzNvICsW9H2JmSX2f11AiG60V5py?= =?us-ascii?Q?WbjWtHJz4btYGQ0r1tJYyPfoEcKPOzjp77JEk7JYFuEDbrd0eei/WTO0/wjw?= =?us-ascii?Q?wulAFm138AQeJ+2LwVIGGSVivvjRiYPv248xQkTNEC+JMrWDEjD/PPxUFR+4?= =?us-ascii?Q?UHXid1abvnQZcUkAjHRRBZTlsL6Y/pLuzg6UlH/t2VtghbwGpWl0nzcTH4O3?= =?us-ascii?Q?Dx9g+nTsKe7zndPAtCJKWCPafwvA+k5FnHYOhiLzTHwXAnmQNYMES42dVxJG?= =?us-ascii?Q?BZdAzfoVodgVRcQ2hvoU7RkSvdvku7BHHubzmxpgg+3Uct4HEU3C0sv+yqIw?= =?us-ascii?Q?bwVPVBrMtUDi4WzK0MBhqGrN?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4930.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a26f964-e3ae-453b-0834-08d950bcfe61 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2021 05:11:29.9729 (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: OmqEkAxW0m6qCingunMGlY3rYl4AxnJlyZpZVWqa1ujxckMviMGT04D/sVxWpv6FaNyxIUAkUTxyqohE8XSvtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2222 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: S, Ashraf Ali > Sent: Friday, July 23, 2021 4:40 PM > To: devel@edk2.groups.io > Cc: S, Ashraf Ali ; Ni, Ray ; K= umar, Rahul1 ; De, > Debkumar ; Han, Harry ; West,= Catharine ; V, > Sangeetha > Subject: [PATCH v2 1/2] UefiCpuPkg: ResetVector Tool Support for Python 3 >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3506 >=20 > Build Scrips for Reset Vector currently based on Python 2 > which is already EOL, needs to modify the build script based on > Python 3 >=20 > Cc: Ray Ni > Cc: Rahul Kumar > Cc: Debkumar De > Cc: Harry Han > Cc: Catharine West > Cc: Sangeetha V >=20 > Signed-off-by: Ashraf Ali S > --- > UefiCpuPkg/ResetVector/Vtf0/Build.py | 6 +++--- > UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/UefiCpuPkg/ResetVector/Vtf0/Build.py b/UefiCpuPkg/ResetVecto= r/Vtf0/Build.py > index 343c53b5ff..55f4edd87b 100644 > --- a/UefiCpuPkg/ResetVector/Vtf0/Build.py > +++ b/UefiCpuPkg/ResetVector/Vtf0/Build.py > @@ -1,7 +1,7 @@ > ## @file > # Automate the process of building the various reset vector types > # > -# Copyright (c) 2009, Intel Corporation. All rights reserved.
> +# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved. > # > # SPDX-License-Identifier: BSD-2-Clause-Patent > # > @@ -33,7 +33,7 @@ for arch in ('ia32', 'x64'): > 'Vtf0.nasmb', > ) > ret =3D RunCommand(commandLine) > - print '\tASM\t' + output > + print('\tASM\t' + output) > if ret !=3D 0: sys.exit(ret) >=20 > commandLine =3D ( > @@ -41,7 +41,7 @@ for arch in ('ia32', 'x64'): > 'Tools/FixupForRawSection.py', > output, > ) > - print '\tFIXUP\t' + output > + print('\tFIXUP\t' + output) > ret =3D RunCommand(commandLine) > if ret !=3D 0: sys.exit(ret) >=20 > diff --git a/UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py > b/UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py > index c77438a0ce..de771eba22 100644 > --- a/UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py > +++ b/UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py > @@ -1,7 +1,7 @@ > ## @file > # Apply fixup to VTF binary image for FFS Raw section > # > -# Copyright (c) 2008, Intel Corporation. All rights reserved.
> +# Copyright (c) 2008 - 2021, Intel Corporation. All rights reserved. > # > # SPDX-License-Identifier: BSD-2-Clause-Patent > # > @@ -15,6 +15,6 @@ c =3D ((len(d) + 4 + 7) & ~7) - 4 > if c > len(d): > c -=3D len(d) > f =3D open(sys.argv[1], 'wb') > - f.write('\x90' * c) > + f.write(b'\x90' * c) > f.write(d) > f.close() > -- > 2.30.2.windows.1