From nobody Wed May 15 17:41:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+111422+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111422+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1700289423; cv=none; d=zohomail.com; s=zohoarc; b=S+VnqeeaT0AKYfkeJwzl3PHG+/g8ihgyjGLezb3mkMSnpTXXQB8IeVYTDJWfHf0InTab+njFs31Z2DC+D2VxSJeWpXXvSyQb5eWtlJhqzPRojpGtl7Wl/5wS0yFTvYCFDGVECxDN4fn/13Ac6x0lZPrZFIhGnXYlH6sOvl/ukKE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700289423; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=ZTY24FIUjAgbKtgo9O7+j2TF8N+jxihThmTvQ5nV1wg=; b=dBPzepnORfJCpPf+90yuHIQ8mWRxl4gJVhtqeKoXExj6X0DDVaXQrxz0ajohWQ/zv2Pjwxr0EeK+rt2bQ5Ty/oRaBwYNEePljVtAhJ/iFPGLNTPheJKhIKNP+N9qJ0RT9AHz9bs/hLGR7F2KdyCYzlb1boxRXeC8xLC3afu05mw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111422+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1700289423052982.9954872314979; Fri, 17 Nov 2023 22:37:03 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=Ize/p59nRraKsmR6oCaRBi/RAGSOctK/bix3KJlitv4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1700289422; v=1; b=HytWGILUe3Qspr8lUvferdStBiJkB30mugYDRRuqC5i4EZBiH5c8iH96zYF2wXrUL5lc+c7Y GRLaqrTuatnFfrJiRkDhzHeSySbcFoz+lsvO24pyGcY64zqEnD7uHbZIGRv3tSOhL3oqTc+AFU0 pUh97hGhQEdXljGJVfwpkUSc= X-Received: by 127.0.0.2 with SMTP id iPbaYY1788612xtQVtPtRbOs; Fri, 17 Nov 2023 22:37:02 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.4487.1700289420573124309 for ; Fri, 17 Nov 2023 22:37:01 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="371587467" X-IronPort-AV: E=Sophos;i="6.04,207,1695711600"; d="scan'208";a="371587467" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 22:37:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,207,1695711600"; d="scan'208";a="14108998" X-Received: from nldesimo-desk.amr.corp.intel.com ([10.241.240.67]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 22:37:00 -0800 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Chasel Chiu , Liming Gao , Eric Dong Subject: [edk2-devel] [edk2-platforms][PATCH v1] MinPlatformPkg: Remove usage of PYTHON_HOME Date: Fri, 17 Nov 2023 22:36:27 -0800 Message-Id: <20231118063629.1397-1-nathaniel.l.desimone@intel.com> MIME-Version: 1.0 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,nathaniel.l.desimone@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 7xavCcyoesr5jg5Y0waYsWfVx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1700289425209100011 Content-Type: text/plain; charset="utf-8" Removes usage PYTHON_HOME from RebaseFspBinBaseAddress.py Cc: Chasel Chiu Cc: Liming Gao Cc: Eric Dong Signed-off-by: Nate DeSimone Reviewed-by: Chasel Chiu --- .../MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddres= s.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.p= y script # to dump the header, and get the ImageSize in FSP-M section # -pythontool =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",fsp= BinFilePath], stdout=3Dsubprocess.PIPE) Output =3D Process.communicate()[0] FsptInfo =3D Output.rsplit(b"FSP_M", 1); --=20 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 (#111422): https://edk2.groups.io/g/devel/message/111422 Mute This Topic: https://groups.io/mt/102667304/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-