From nobody Thu May 16 04:55:38 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+75858+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+75858+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1622430467; cv=none; d=zohomail.com; s=zohoarc; b=Awa4ahm6267qRbUxxdmkYQyrf4gbrtrWjENWgVAyaKDIWOIkHW5JkrtMGxscM1+4JJ6nkWPMAuQeYe+e8CG4y/R8U9BiDZjbYIYhlQ02MlrK+vBueE5nQf4bdf76luw8J3NJC4SGZbqTJGTgwLgxg/NByRMRKfSk25aksKME5l0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622430467; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=ovv8zEVNVKXUk0CEZAm/pqf+VcaVT3w2CMU5VTKs3cY=; b=DgH2T6VuQb51RXaFcjYn3efwthWW1KC2ugFJkyX585Y/MmIemW8rh20E53L1NKs2PIsFG+8/QRIWjEiLkh2AzlQvQpErY9L65ojm8VJhz7O3Xl5bJsP3Ya1k0kDLXE3EbtacE9oAp8m0TKrRCakskEx2euG/UFEioGDTAPb4QPA= 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+75858+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1622430467388851.1617477291946; Sun, 30 May 2021 20:07:47 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id bVjRYY1788612xUyGkDJPunZ; Sun, 30 May 2021 20:07:47 -0700 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web12.39568.1622430465476882863 for ; Sun, 30 May 2021 20:07:46 -0700 IronPort-SDR: oY/baWmg4REFUUlBgh7NhKqE9e9M7wA0d3OWQvC4y4vk9YezewFXcdVkZpYgEi7ZORyQl27SMP LQYvkFwUEzng== X-IronPort-AV: E=McAfee;i="6200,9189,10000"; a="264475004" X-IronPort-AV: E=Sophos;i="5.83,236,1616482800"; d="scan'208";a="264475004" X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2021 20:07:43 -0700 IronPort-SDR: TX5rnA6HPlkbb8IJPwpm3BQ8g7DMfKx91JZvBMO3Xy+tCI6j9n6jZVcqFTb4PiOxzChRuCf5I7 AB/SYbUovL7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,236,1616482800"; d="scan'208";a="549263078" X-Received: from yuweipc.ccr.corp.intel.com ([10.239.158.34]) by fmsmga001.fm.intel.com with ESMTP; 30 May 2021 20:07:42 -0700 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Mingyue Liang , Bob Feng , Liming Gao Subject: [edk2-devel] [Edk2-platforms][PATCH] Tools/Fsp: Replace PYTHON_HOME with sys.executable Date: Mon, 31 May 2021 11:07:41 +0800 Message-Id: <20210531030741.1730-1-yuwei.chen@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,yuwei.chen@intel.com X-Gm-Message-State: ZUs9lfRKS3FUe9u5rIrVOXFGx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1622430467; bh=oCTp7Ax7FGR/MEoR9aFJFHlcJPJwbkHpjKPI7vx7iEI=; h=Cc:Date:From:Reply-To:Subject:To; b=NiatamYZZhqgPh94BGOfxDXASXPc5vvo9EGlXkoFleJR8vsg2QEDfP/6oQeGaOvXnZi ad4zIozxwFaWSjcRiPmfQdFxxpv9OgrpBv1swJO5lhSoecXH2Z9VDTzq4La599UboXaH0 NPND6TpAiNWvuuM2iLTH7A0t+aShqOUUxag= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Mingyue Liang Currently script Python interpreter is inconsistent with the=20 interpreter specified by Python home. This patch is to change=20 pythonhome to sys.executable. Signed-off-by: MingYue Liang Cc: Yuwei Chen Cc: Bob Feng Cc: Liming Gao Reviewed-by: Bob Feng --- .../Tools/Fsp/RebaseAndPatchFspBinBaseAddress.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseAndPatchFspBinBa= seAddress.py b/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseAndPatchFspBin= BaseAddress.py index 406e5ec130..9e58cbe312 100644 --- a/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseAndPatchFspBinBaseAddre= ss.py +++ b/Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseAndPatchFspBinBaseAddre= ss.py @@ -73,9 +73,7 @@ file.close() # Get FSP-M Size, in order to calculate the FSP-T Base. Used SplitFspBin.p= y script=20 # 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' +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.26.2.windows.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 (#75858): https://edk2.groups.io/g/devel/message/75858 Mute This Topic: https://groups.io/mt/83202048/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-