Reviewed-by: Chasel Chiu <[email protected]>
Thanks, Chasel > -----Original Message----- > From: Desimone, Nathaniel L <[email protected]> > Sent: Friday, November 17, 2023 10:36 PM > To: [email protected] > Cc: Chiu, Chasel <[email protected]>; Gao, Liming > <[email protected]>; Dong, Eric <[email protected]> > Subject: [edk2-platforms][PATCH v1] MinPlatformPkg: Remove usage of > PYTHON_HOME > > Removes usage PYTHON_HOME from RebaseFspBinBaseAddress.py > > Cc: Chasel Chiu <[email protected]> > Cc: Liming Gao <[email protected]> > Cc: Eric Dong <[email protected]> > Signed-off-by: Nate DeSimone <[email protected]> > --- > .../MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > 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.<BR> > +# Copyright (c) 2019 - 2023, Intel Corporation. All rights > +reserved.<BR> > # SPDX-License-Identifier: BSD-2-Clause-Patent # > > @@ -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 # -pythontool = > 'python' > -if 'PYTHON_HOME' in os.environ: > - pythontool = os.environ['PYTHON_HOME'] + os.sep + 'python' > -else: > - pythontool = sys.executable > +pythontool = sys.executable > Process = subprocess.Popen([pythontool, splitFspBinPath, "info","- > f",fspBinFilePath], stdout=subprocess.PIPE) Output = Process.communicate()[0] > FsptInfo = Output.rsplit(b"FSP_M", 1); > -- > 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- 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/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
