From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 17AECD806C3 for ; Wed, 19 Jun 2024 23:29:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=KFhV9B/x0jk6Yo+gv/fNEQs5ZbPP6F0ZWmVnTrj51AI=; c=relaxed/simple; d=groups.io; h=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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1718839746; v=1; b=yIYp68oPR6UVb6cf1uPAwWHUTYtdmdGAg1VpyPXAqXcbiKoCjAO011EMyuTmwRBXmzsCpDU0 pnES+F2bQreJpuuRznrvn0IUSoydrpQsOOm9Kc+0KEvdjKO6v+kKThh4K2hcDACLsXXZzhkMJjK kpF54hBCm5jbOVVO22heLRTBrnhCa0cYm8566GC1nlYt1+rKXXxLXkJAzMjSdhtu41y6liT6HvI 2u1H6RWShaPuSbLqx4QZMPJ1sDV43e1xKcNwMvoBPYGpWqJ832PtVD2JOLG5goKbrU0tk+61eL4 /9YO9MaWoliedb4TshYx8XzDnM33Ib4geMtj4OKy4083A== X-Received: by 127.0.0.2 with SMTP id ZzF3YY7687511x4XtPueTsWv; Wed, 19 Jun 2024 16:29:05 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by mx.groups.io with SMTP id smtpd.web10.35578.1718839739807816525 for ; Wed, 19 Jun 2024 16:28:59 -0700 X-CSE-ConnectionGUID: 1tBSKDueR6uraC2VViJKuQ== X-CSE-MsgGUID: 9BzawQYvTniV0YIyVT+TSA== X-IronPort-AV: E=McAfee;i="6700,10204,11108"; a="19675004" X-IronPort-AV: E=Sophos;i="6.08,251,1712646000"; d="scan'208";a="19675004" X-Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2024 16:28:59 -0700 X-CSE-ConnectionGUID: TWbphBxQRneaOiFt+nzjJg== X-CSE-MsgGUID: Gruil7TETIaFBnCDnBOcZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,251,1712646000"; d="scan'208";a="42718000" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Jun 2024 16:28:59 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 19 Jun 2024 16:28:58 -0700 X-Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 19 Jun 2024 16:28:58 -0700 X-Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.41) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 19 Jun 2024 16:28:58 -0700 X-Received: from CO1PR11MB4929.namprd11.prod.outlook.com (2603:10b6:303:6d::19) by PH0PR11MB5189.namprd11.prod.outlook.com (2603:10b6:510:3d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.34; Wed, 19 Jun 2024 23:28:56 +0000 X-Received: from CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::a886:6510:729d:f9d0]) by CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::a886:6510:729d:f9d0%4]) with mapi id 15.20.7698.017; Wed, 19 Jun 2024 23:28:56 +0000 From: "Michael D Kinney" To: "Jayaprakash, N" , "devel@edk2.groups.io" CC: Rebecca Cran , "Kinney, Michael D" Subject: Re: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : update build and packaging scripts to take EDK2_LIBC_PATH Thread-Topic: [edk2-libc Patch 1/1] edk2-libc : update build and packaging scripts to take EDK2_LIBC_PATH Thread-Index: AQHawh3xyCaMkr6QmEilI1t60nY9AbHPvJBg Date: Wed, 19 Jun 2024 23:28:56 +0000 Message-ID: References: <20240619075421.1345-1-n.jayaprakash@intel.com> <20240619075421.1345-2-n.jayaprakash@intel.com> In-Reply-To: <20240619075421.1345-2-n.jayaprakash@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR11MB4929:EE_|PH0PR11MB5189:EE_ x-ms-office365-filtering-correlation-id: 7eaa8f4a-82f9-4e63-7eca-08dc90b796c1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?k3E1lxtvHarz3lbj27Ye2a2ITt1HoTiMZ/lQncFVQGKnSJNocy5vaJvf1KG0?= =?us-ascii?Q?nSadVFwq4kmfq9ZriUWGl9zEtfhhPmjmDYVg2wjyEffPqt5+kM62jZoGnPSJ?= =?us-ascii?Q?qyUQdAVluqljWxmeD4mBuCD3Or2gOCnDiQE4Xm08ClhH7z6xpPlKoCvMQc2H?= =?us-ascii?Q?TUDXizpDRBaHno9oat1JWINYC9hKtTmQjitDj+1tz+jutww5dEWuhy0EBA06?= =?us-ascii?Q?3qogCVUgknSo30WuMzWtP/bpxKMZS8dNW+H6PizbSyBHJ994tqb6ebLbLR9w?= =?us-ascii?Q?UBg3mqZIuWclrHBhjVGToU+v3WKYC8Kx2hQuFp3TM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ascii?Q?TBuS1jDv9lApO4Xw0HgbTO5hH8rMPHH1eT++mDAFJlCqmr5TRBQvcoM3lHwL?= =?us-ascii?Q?n6UuYkBms1L6EdRIPxd8v+C5Vfg8YYEE+oCqLPydjPHn6Yklzin3fKfghAkF?= =?us-ascii?Q?tqu3AFJt0nAh51MvEQNNXiRZ?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yn7VQmfDjO9xcpqIKmQ3ItYlYdjNXKrlGLpvvFaHWDK/JiA2jTd74Wqzs3+j?= =?us-ascii?Q?9d+XCJKDBh90E00cOacXGXPdqZ6AHOImP61ANjZIcyjcbEPPP3UtUQfxUl2z?= =?us-ascii?Q?pOSqcyKcZ/Vd+TJIKXkHWMftKTACCAZGQQk2kfWsaKnASNEKS6BGIX07OLMW?= =?us-ascii?Q?Y+299I1erwmsjp/T+8H9MV7/fIuT+aPDDd3gRtmegDWEqibQnwYsR/isCb83?= =?us-ascii?Q?Y74iq3ouK/WgsRAREf5mCR/jwman2ZveM9J8p5fDSc43JLlmTfksB9DLTB+b?= =?us-ascii?Q?CyuDqblCQxQ+Z55fa7P6BOdDpIFaFfqalhcD7NfF6cPTwGs/OoJhXL2B6cGl?= =?us-ascii?Q?VP5g9Ghxgq39ENsoEoVkFCbNRiu0StGumLxemg7aGwyD+pl24PtgD9UnV61e?= =?us-ascii?Q?/jvFGk1EjE41rKiHvhhVfAeJzUbcNrAA08lVgOpseOEtX9rdsPSGQldugLSa?= =?us-ascii?Q?EppdPVeKsYjMoOzrH/0xC74Pz3KNuAPIlfAYsy4vpuPSybOAulB9ga1Q5GAk?= =?us-ascii?Q?50FewbSsiHHI92sONzmldM1XMfJ6xRN5oEPlGogJgF90wfZRnFtOJZzqOWbA?= =?us-ascii?Q?Qnk1FUXUbqiIfUBrSwJCuBf7vhiKuYMzYqjWCz8Spehaec2+sdLsQULDgl3E?= =?us-ascii?Q?ue0TQ1fBbTfh0UXunoDftU+7CR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Q?nmNEcf1rll3f4Hu8bkPrD2vM2qXiUastG6GrDmWw?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4929.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7eaa8f4a-82f9-4e63-7eca-08dc90b796c1 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2024 23:28:56.2053 (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: XmpqPDOZJT0gzTge8ly5ksGLd6PGwO37tMfhwrkrKPv7sasdrAgsxxzL13lN6bNv1u31hJ8tmmt7CWgBgYmJGj08Ykz7damBkWK07JmO2rY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5189 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 Resent-Date: Wed, 19 Jun 2024 16:28:59 -0700 Resent-From: michael.d.kinney@intel.com Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: mbI1J6bnzL6bcT2es6EggOZSx7686176AA= 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=20240206 header.b=yIYp68oP; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) Reviewed-by: Michael D Kinney > -----Original Message----- > From: Jayaprakash, N > Sent: Wednesday, June 19, 2024 12:53 AM > To: devel@edk2.groups.io > Cc: Jayaprakash, N ; Rebecca Cran > ; Kinney, Michael D > Subject: [edk2-libc Patch 1/1] edk2-libc : update build and packaging scr= ipts > to take EDK2_LIBC_PATH >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4791 >=20 > This commit adds necessary changes to build and packaging scripts > to take path to edk2-libc through an environment variable. > It also updates the build and packaging instructions in > GCCCompilationBKMs.rst file and Py368ReadMe.txt files. > The Python368.inf file is also updated to take EDK2_LIBC_PATH > instead of the current WORKSPACE path in the CC flags. >=20 > Cc: Rebecca Cran > Cc: Michael D Kinney > Cc: Jayaprakash N > Signed-off-by: Jayaprakash N > --- > .../Python-3.6.8/GCCCompilationBKMs.rst | 21 +++++++++++------ > .../Python/Python-3.6.8/Py368ReadMe.txt | 22 ++++++++++++++++-- > .../Python/Python-3.6.8/Python368.inf | 6 ++--- > .../Python/Python-3.6.8/create_python_pkg.bat | 21 ++++++++++++++--- > .../Python/Python-3.6.8/create_python_pkg.sh | 23 ++++++++++++++++--- > 5 files changed, 75 insertions(+), 18 deletions(-) >=20 > diff --git a/AppPkg/Applications/Python/Python-3.6.8/GCCCompilationBKMs.r= st > b/AppPkg/Applications/Python/Python-3.6.8/GCCCompilationBKMs.rst > index 0574977..667b408 100644 > --- a/AppPkg/Applications/Python/Python-3.6.8/GCCCompilationBKMs.rst > +++ b/AppPkg/Applications/Python/Python-3.6.8/GCCCompilationBKMs.rst > @@ -136,17 +136,17 @@ Now clone the edk2-libc git repo by following / > executing the below commands:: >=20 > bash$ cd ~/src > bash$ git clone https://github.com/tianocore/edk2-libc.git > - bash$ export PACKAGES_PATH=3D$HOME/src/edk2:$HOME/src/edk2-libc >=20 > +Set the PACKAGES_PATH and EDK2_LIBC_PATH using the commands below:: > + > + bash$ export PACKAGES_PATH=3D$HOME/src/edk2:$HOME/src/edk2-libc > + bash$ export EDK2_LIBC_PATH=3D$HOME/src/edk2-libc >=20 > Verify that you can build the hello world application from AppPkg under > edk2-libc by running the following commands > Build hello.inf from edk2-libc applications:: >=20 > - $bash build -p AppPkg/AppPkg.dsc -m > AppPkg/Applications/Hello/Hello.inf > - > -Copy the contents of edk2-libc to edk2 folder:: > + $bash build -p ../edk2-libc/AppPkg/AppPkg.dsc -m ../edk2- > libc/AppPkg/Applications/Hello/Hello.inf >=20 > - bash$ cp -rf ~/src/edk2-libc/* ~/src/edk2/ >=20 > 2.5. Build Python Interpreter using GCC > ---------------------------------------- > @@ -156,7 +156,8 @@ Execute the below command to build the X64 version of= the > Python 3.6.8 interpret > bash$ cd AppPkg/Applications/Python/Python-3.6.8/ > bash$ python srcprep.py > bash$ cd ~/src/edk2 > - bash$ build -a X64 -b RELEASE -p AppPkg/AppPkg.dsc -m > AppPkg/Applications/Python/Python-3.6.8/Python368.inf -D BUILD_PYTHON368 > + bash$ build -a X64 -b RELEASE -p ../edk2-libc/AppPkg/AppPkg.dsc = \ > + -m ../edk2-libc/AppPkg/Applications/Python/Python- > 3.6.8/Python368.inf -D BUILD_PYTHON368 > or > bash$ build -a X64 -b RELEASE -p AppPkg/AppPkg.dsc -D > BUILD_PYTHON368 >=20 > @@ -166,7 +167,13 @@ Execute the below command to build the X64 version o= f > the Python 3.6.8 interpret >=20 > To create an usable Python UEFI package with all the dependencies from t= he > build environment, > you can use the bash shell script create_python_pkg.sh available under > /AppPkg/Applications/Python/Python-3.6.8 > -folder. > +folder. Ensure that EDK2_LIBC_PATH environment variable to edk2-libc fol= der > path. > + > +Ensure that EDK2_LIBC_PATH environment variable to edk2-libc folder path= :: > + > + bash$ echo $EDK2_LIBC_PATH > + > +The environment variable should be set to the folder path for the edk2-l= ibc > cloned repo. >=20 > Use the following commands to create Python UEFI package:: >=20 > diff --git a/AppPkg/Applications/Python/Python-3.6.8/Py368ReadMe.txt > b/AppPkg/Applications/Python/Python-3.6.8/Py368ReadMe.txt > index 91f4c24..8a0b3fe 100644 > --- a/AppPkg/Applications/Python/Python-3.6.8/Py368ReadMe.txt > +++ b/AppPkg/Applications/Python/Python-3.6.8/Py368ReadMe.txt > @@ -68,7 +68,24 @@ and that you can successfully build packages within th= at > distribution. > gc itertools math _operator > time >=20 > - C. Build AppPkg using the standard "build" command: > + C. Set the PACKAGES_PATH and EDK2_LIBC_PATH environment variables to > + the right values. PACKAGES_PATH should be set to the folder path of > + edk2 and edk2-libc folders. EDK2_LIBC_PATH should be set to the > + folder path of edk2-libc. > + Use the below provided commands as reference to set the environment > + variables to the corresponding values > + > + set PACKAGES_PATH=3D;; > + set EDK2_LIBC_PATH=3D > + > + where, > + should be replaced with the absolute path to > + edk2 folder on your development system. > + > + should be replaced with the absolute path > + to edk2-libc folder on your development system. > + > + D. Build AppPkg using the standard "build" command: > For example, to build Python for an X64 CPU architecture: > build -a X64 -p AppPkg\AppPkg.dsc -D BUILD_PYTHON368 >=20 > @@ -115,7 +132,8 @@ system as follows: > A script, create_python_pkg.bat , is provided which facilitates the > population > of the target EFI package. Execute this script from within the > AppPkg/Applications/Python/Python-3.6.8 directory, providing the Tool > Chain, Target > - Build and destination directory which is the path to the destination > directory. > + Build and destination directory which is the path to the destination > directory. > + Ensure that EDK2_LIBC_PATH environment variable has been set to edk2-l= ibc > folder path. > The appropriate contents of the AppPkg/Applications/Python/Python- > 3.6.8/Lib and > Python.efi Application from Build/AppPkg/RELEASE_VS2017/X64/ will be > ^^^^^^^^^^^^^^ > diff --git a/AppPkg/Applications/Python/Python-3.6.8/Python368.inf > b/AppPkg/Applications/Python/Python-3.6.8/Python368.inf > index fe42fb4..ffd802c 100644 > --- a/AppPkg/Applications/Python/Python-3.6.8/Python368.inf > +++ b/AppPkg/Applications/Python/Python-3.6.8/Python368.inf > @@ -1,7 +1,7 @@ > ## @file > # Python368.inf > # > -# Copyright (c) 2011-2021, Intel Corporation. All rights reserved.
> +# Copyright (c) 2011-2024, Intel Corporation. All rights reserved.
> # This program and the accompanying materials > # are licensed and made available under the terms and conditions of the= BSD > License > # which accompanies this distribution. The full text of the license may= be > found at > @@ -275,8 +275,8 @@ Modules/zlib > PyMod-$(PYTHON_VERSION)/Modules/cpu_gcc.s | GCC # >=20 > [BuildOptions] > - MSFT:*_*_*_CC_FLAGS =3D /GL- /Oi- /wd4018 /wd4054 /wd4055 /wd4101 /wd4= 131 > /wd4152 /wd4204 /wd4210 /wd4244 /wd4267 /wd4305 /wd4310 /wd4389 /wd4701 > /wd4702 /wd4706 /wd4456 /wd4312 /wd4457 /wd4459 /wd4474 /wd4476 > /I$(WORKSPACE)\AppPkg\Applications\Python\Python-3.6.8\Include /DHAVE_MEM= MOVE > /DUSE_PYEXPAT_CAPI /DXML_STATIC -D UEFI /WX- /DXML_POOR_ENTROPY > /DUEFI_C_SOURCE > - GCC:*_*_*_CC_FLAGS =3D -Wno-unused-function -Wno-format -Wno-error -fn= o- > strict-aliasing -I$(WORKSPACE)/AppPkg/Applications/Python/Python- > 3.6.8/Include -DHAVE_MEMMOVE -DUSE_PYEXPAT_CAPI -DXML_STATIC - > DXML_POOR_ENTROPY > + MSFT:*_*_*_CC_FLAGS =3D /GL- /Oi- /wd4018 /wd4054 /wd4055 /wd4101 /wd4= 131 > /wd4152 /wd4204 /wd4210 /wd4244 /wd4267 /wd4305 /wd4310 /wd4389 /wd4701 > /wd4702 /wd4706 /wd4456 /wd4312 /wd4457 /wd4459 /wd4474 /wd4476 > /I$(EDK2_LIBC_PATH)\AppPkg\Applications\Python\Python-3.6.8\Include > /DHAVE_MEMMOVE /DUSE_PYEXPAT_CAPI /DXML_STATIC -D UEFI /WX- > /DXML_POOR_ENTROPY /DUEFI_C_SOURCE > + GCC:*_*_*_CC_FLAGS =3D -Wno-unused-function -Wno-format -Wno-error -fn= o- > strict-aliasing -I$(EDK2_LIBC_PATH)/AppPkg/Applications/Python/Python- > 3.6.8/Include -DHAVE_MEMMOVE -DUSE_PYEXPAT_CAPI -DXML_STATIC - > DXML_POOR_ENTROPY >=20 > [BuildOptions.IA32] > MSFT:*_*_*_CC_FLAGS =3D /DUEFI_MSVC_32 > diff --git a/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.ba= t > b/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.bat > index 32044d2..2682ac6 100644 > --- a/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.bat > +++ b/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.bat > @@ -27,7 +27,22 @@ echo. > goto :eof >=20 > :continue > -cd ..\..\..\..\ > +echo current working directory %CD% > +echo changing working directory to workspace %WORKSPACE% > +cd %WORKSPACE% > +dir > + > +if "%EDK2_LIBC_PATH%" =3D=3D "" ( > + echo Warning: EDK2_LIBC_PATH environment variable is not set > + echo It should be set to edk2-libc folder path. > + echo. > + echo Assuming that edk2-libc contents are copied to edk2 folder > + echo at compilation time, setting this variable to edk2 path. > + set EDK2_LIBC_PATH=3D%WORKSPACE% > +) > + > +echo edk2 libc path %EDK2_LIBC_PATH% > + > if not exist Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\%ARCH%\Python.efi ( > goto error > ) > @@ -43,8 +58,8 @@ if not exist %OUT_FOLDER%\EFI\StdLib\lib\python36.8 ( > if not exist %OUT_FOLDER%\EFI\StdLib\etc ( > mkdir %OUT_FOLDER%\EFI\StdLib\etc > ) > -xcopy AppPkg\Applications\Python\Python-3.6.8\Lib\* > %OUT_FOLDER%\EFI\StdLib\lib\python36.8\ /Y /S /I > -xcopy StdLib\Efi\StdLib\etc\* %OUT_FOLDER%\EFI\StdLib\etc\ /Y /S /I > +xcopy %EDK2_LIBC_PATH%\AppPkg\Applications\Python\Python-3.6.8\Lib\* > %OUT_FOLDER%\EFI\StdLib\lib\python36.8\ /Y /S /I > +xcopy %EDK2_LIBC_PATH%\StdLib\Efi\StdLib\etc\* %OUT_FOLDER%\EFI\StdLib\= etc\ > /Y /S /I > echo. >=20 > if not x%OUT_FOLDER::=3D%=3D=3Dx%OUT_FOLDER% ( > diff --git a/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh > b/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh > index 4a3a1e5..323d846 100644 > --- a/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh > +++ b/AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh > @@ -59,7 +59,24 @@ then > exit > fi >=20 > -cd ../../../../ > +echo current working directory `pwd` > +echo changing working directory to $WORKSPACE > +cd $WORKSPACE > +ls > + > +# check if the EDK2_LIBC_PATH environment variable set or not > +if [ -z $EDK2_LIBC_PATH ] > +then > + echo Warning: EDK2_LIBC_PATH environment variable is not set > + echo It should be set to edk2-libc folder path. > + echo. > + echo Assuming that edk2-libc contents are copied to edk2 folder > + echo at compilation time, setting this variable to edk2 path. > + export EDK2_LIBC_PATH=3D$WORKSPACE > +fi > + > +echo edk2 libc path $EDK2_LIBC_PATH > + > PYTHON_BIN=3D"Build/AppPkg/$TARGET"_"$TOOL_CHAIN_TAG/$ARCH/Python.efi" > if [ ! -f $PYTHON_BIN ] > then > @@ -86,8 +103,8 @@ then > mkdir -p $OUT_FOLDER/EFI/StdLib/etc > fi >=20 > -cp -rf AppPkg/Applications/Python/Python-3.6.8/Lib/* > $OUT_FOLDER/EFI/StdLib/lib/python36.8/ > -cp -rf StdLib/Efi/StdLib/etc/* $OUT_FOLDER/EFI/StdLib/etc/ > +cp -rf $EDK2_LIBC_PATH/AppPkg/Applications/Python/Python-3.6.8/Lib/* > $OUT_FOLDER/EFI/StdLib/lib/python36.8/ > +cp -rf $EDK2_LIBC_PATH/StdLib/Efi/StdLib/etc/* $OUT_FOLDER/EFI/StdLib/e= tc/ >=20 > if [ ${OUT_FOLDER:0:1} =3D=3D "/" ] > then > -- > 2.45.1.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 (#119649): https://edk2.groups.io/g/devel/message/119649 Mute This Topic: https://groups.io/mt/106756612/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-