From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 3AE1EAC0B0F for ; Tue, 28 Nov 2023 03:18:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=NMt1r+Z2xPxUQZ8SRBxovEa+EYjLVr8bfVEP594kW48=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1701141482; v=1; b=Yh0U86gh4ei4MImf9DPo6yz3P7QHh476ZpxkNrT3catfkQqFDjF2paqFoY9T/LpKcMKKnIeR GJ+oXs2oUVwTzpAnqJz7E3iz+5CvxE88yC+VcpZ81VKBn7D8OV+eIXrXCFk90dJHGl2SRlhoXPX VDbUySHo834mvXcn3Ls8O5yg= X-Received: by 127.0.0.2 with SMTP id JUZVYY7687511xasayJMI7u7; Mon, 27 Nov 2023 19:18:02 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.24338.1701141482130671691 for ; Mon, 27 Nov 2023 19:18:02 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="396741838" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="396741838" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 19:18:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="1099959409" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="1099959409" X-Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 27 Nov 2023 19:18:01 -0800 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 27 Nov 2023 19:18:00 -0800 X-Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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.2507.34; Mon, 27 Nov 2023 19:18:00 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 27 Nov 2023 19:18:00 -0800 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) 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.2507.34; Mon, 27 Nov 2023 19:18:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hla1BK+V6UlKjZ3z2Rn0m6geoAJRBESsr+UskLHzvtVhZcLlpKOhZYFS0geKM3SKAqQOYwFT9ZAEkq7VS1MuC2dxdqY4tGzhDed7N4LMdAmXCBLl48JobyaqPE1jbihEimJ72Ph1r3AUsvBm1HwjFmMQSI8pI6blavVY6kZ2bjhDyvxgSEdKJhJEwcSY4d1sxmMjI3suI1uSJfWuT9zGCCeO17+bXYnppxuYQDGDMYdgosQ92BP/sXL1IkKdk65aEI/vv7Tg8CeLMZk0tcWrcV4xWfLI/K2urpuFa7zm2muPLfd+7AhjSIvDKvid7VYJnMf5kyxcyqTKKtU07clXPQ== 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=mlpm8y299tHXweX6QG6Zl6UGcXD0LAeV3CyeBbAuhFQ=; b=TLCAhTTpAYy3eCweKAUC7lG7lAtNaaT3dGLiYRIvyyqLejWVJjr53H/ZFjiZIks58DMiMWWkrG5QpnXGKBOsHx8eHMLTGwhZMqLDmrXvyikK8x+MHm7JCF9E5KjfnLeuD9/Sjf4NDdvA+igNZcJm8NtNKhMqKuKzNEGAMKDZaDqTqZPmPkDxvdEsDOAqBKCbIUCxX0v8zSYoSXB9qAmetFWECy5U9ryHV4rfmjFb8BPC/ED02OP++zQF+/yvaEKq60sNRIzWJ/oSIt8uvRQjwBUYIRKnnRmmG2dZfrPM8kZl2DQst377oec8/C1ziNyX7C7zGgh1b0jyfEqNuoHPZQ== 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 X-Received: from BN9PR11MB5483.namprd11.prod.outlook.com (2603:10b6:408:104::10) by IA0PR11MB7742.namprd11.prod.outlook.com (2603:10b6:208:403::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27; Tue, 28 Nov 2023 03:17:57 +0000 X-Received: from BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::6da1:a4b7:4771:14e1]) by BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::6da1:a4b7:4771:14e1%5]) with mapi id 15.20.7025.022; Tue, 28 Nov 2023 03:17:56 +0000 From: "Chiu, Chasel" To: "Desimone, Nathaniel L" , "devel@edk2.groups.io" CC: "Gao, Liming" , "Dong, Eric" Subject: Re: [edk2-devel] [edk2-platforms][PATCH v1] MinPlatformPkg: Remove usage of PYTHON_HOME Thread-Topic: [edk2-platforms][PATCH v1] MinPlatformPkg: Remove usage of PYTHON_HOME Thread-Index: AQHaGemkTWpvv4AGGk+GRs6qJqARIbCPHqRA Date: Tue, 28 Nov 2023 03:17:56 +0000 Message-ID: References: <20231118063629.1397-1-nathaniel.l.desimone@intel.com> In-Reply-To: <20231118063629.1397-1-nathaniel.l.desimone@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5483:EE_|IA0PR11MB7742:EE_ x-ms-office365-filtering-correlation-id: b08192ce-b723-4cb9-2e04-08dbefc09e2b x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: rl2xiEBAo9kTkkdrEwGxQO3HTezwCTkUKr7HXbrroJPgMimiN1wsqWm2BQy5ssRrVpR84Sprxub5hveKt0HJGLRqFyW7ufDZTnt+EjvvsD2uMtYjBPuW4RAACk8utEklCe+ct9fiJrEXaRpcFH7zK2dhS//F9v2bGl8c2228YKSC1mJCZ1Te+/UK2Zt4LjIRuJdbGhMvckezrYeT3SwTywW9I74na/+MtdNto8bGedS60ZjmbG9FHaUPqZhxltsU5E6ngs4xy6MOVQVtO1axVaJBway9ZnaMhezb0ymiX323FbzC4fy/5W+33W0hpBkk69j6MBF6616CGGiyVqfCjaJnI21EDL/BWHCYI8sxJKoOKylgbW7nfILI1iB99HNShOmTzdT6A8Ex7rS7A2RD2GFXvYuyWSu3DuSaQJqSQ9ryofBZ22p4StbszI4ysN1soVsjWyL2LM/0MXKajFQXu9rFjmQZbFLsx3KAzKOt4d/V7JQc8AxvelOLxDZoo25OaqbeItNUBA5Dagqftcy2oa7yDP6FMJuODg3DMEWTYMuT73CfMB6RjL7Qci70lSZ2nn3uNfdJal67EbuNAcM6IIHW03YgN2LGfNEXTGaCrjoaB5GRzvDSEM5oUmoYLWLd x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5jg5mte/n2wxvkHmCYaXjByziUz+jds0yp1/ufg6ECEXuZI8klMK5j3iTqdS?= =?us-ascii?Q?er0WUHChzx0F7QY413CIba4XbSAiMPSN6o/YalO6Fowexy9VxL+GmnG8GORQ?= =?us-ascii?Q?buAO3wsdxjhpF3vbdPyXrc3mI3Yf8f3S6QUk7r2Zcw4VZGx0/lJnCkFzjyCD?= =?us-ascii?Q?7pGhXCthUI5UK/VmRrix2Uy9bgUg7djYHanNIpj2qfy9fbWECwz72zbfEohb?= =?us-ascii?Q?KslywvQXoh5lhJuvegTTMUYE7iJWEJLqYRIizbKvNu6ZcGydKfa0PZlzuX/n?= =?us-ascii?Q?wcUF/f9rFmcyRyzCzSJM4HRQmhd4QKVONMAXNWdBCzUZmNLoTAcqU12fnFoR?= =?us-ascii?Q?I0jxHQsw3DxuuGgUGRado/zlWTNQOmKRdW5avKtYx89ouPdkGmirA/Enjemb?= =?us-ascii?Q?huX7rSJH/4OLszkWoqXNhY1DqYdJPPrSA6Sk/d1FYVjdOq6nWhVqF7QpQsWb?= =?us-ascii?Q?rDhUqBiV/oQQqApibmKHEeSo1zcVxYxppoprVTCWDHgOQ5OGAK3pHG8F44+0?= =?us-ascii?Q?T4WhT3gdVvtNZy33hueb2Bd2Ei9HX7liKHJTsoklv3c008QsMySw1m6HNDUx?= =?us-ascii?Q?M4+4ntgTqO9HbiC0PAsfAQKq9nLJHf7T0B6wuQtyuGz0QUMEWEObar3Kdr2a?= =?us-ascii?Q?Dv8SHpK1GlGQLXhs3cu8V0VMYB79vzKmjk1uHJOBlqjrufvzi7jyb7aygM3Q?= =?us-ascii?Q?EAHejt425uJctdMFQ+ntavQiyhO77fUMVB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enant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5483.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b08192ce-b723-4cb9-2e04-08dbefc09e2b X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2023 03:17:56.9180 (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: jPuLkEkFOsN//HMwcCLsGlTeYAa4EnCt5NHex/pDs/hTR+KkOyamjXyX0o8Ah2KYoZZ2eze4Tp8UthkmnocRFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7742 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,chasel.chiu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: rhQd1aJTzMJ0irvl1UyyXTwcx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=Yh0U86gh; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Chasel Chiu Thanks, Chasel > -----Original Message----- > From: Desimone, Nathaniel L > Sent: Friday, November 17, 2023 10:36 PM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Gao, Liming > ; Dong, Eric > Subject: [edk2-platforms][PATCH v1] MinPlatformPkg: Remove usage of > PYTHON_HOME >=20 > Removes usage PYTHON_HOME from RebaseFspBinBaseAddress.py >=20 > Cc: Chasel Chiu > Cc: Liming Gao > Cc: Eric Dong > Signed-off-by: Nate DeSimone > --- > .../MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) >=20 > diff --git > a/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py > b/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py > index b7e4bcf5f9..32db9eb1c4 100644 > --- a/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py > +++ b/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py > @@ -1,6 +1,6 @@ > ## @ RebaseFspBinBaseAddress.py > # > -# Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.
> +# Copyright (c) 2019 - 2023, Intel Corporation. All rights > +reserved.
> # SPDX-License-Identifier: BSD-2-Clause-Patent # >=20 > @@ -65,11 +65,7 @@ file.close() > # Get FSP-M Size, in order to calculate the FSP-T Base. Used SplitFspBin= .py script > # to dump the header, and get the ImageSize in FSP-M section # -pythonto= ol =3D > 'python' > -if 'PYTHON_HOME' in os.environ: > - pythontool =3D os.environ['PYTHON_HOME'] + os.sep + 'python' > -else: > - pythontool =3D sys.executable > +pythontool =3D sys.executable > Process =3D subprocess.Popen([pythontool, splitFspBinPath, "info","- > f",fspBinFilePath], stdout=3Dsubprocess.PIPE) Output =3D Process.communi= cate()[0] > FsptInfo =3D Output.rsplit(b"FSP_M", 1); > -- > 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111782): https://edk2.groups.io/g/devel/message/111782 Mute This Topic: https://groups.io/mt/102667304/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-