From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 24EBD81F23 for ; Thu, 2 Feb 2017 22:39:20 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 02 Feb 2017 22:39:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,327,1477983600"; d="scan'208";a="816555761" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 02 Feb 2017 22:39:19 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 2 Feb 2017 22:39:19 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 2 Feb 2017 22:39:19 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0248.002; Fri, 3 Feb 2017 14:39:17 +0800 From: "Gao, Liming" To: "Kinney, Michael D" , "edk2-devel@lists.01.org" CC: Andrew Fish , "Gao, Liming" Thread-Topic: [edk2] [staging/edk2-test PATCH 1/6] edk2-test: Update Readme.md Thread-Index: AQHSe/JCdE+xX2TrxkyHQg7HllaUKKFW0WsA Date: Fri, 3 Feb 2017 06:39:16 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6D63C4@shsmsx102.ccr.corp.intel.com> References: <1485888322-56072-1-git-send-email-michael.d.kinney@intel.com> <1485888322-56072-2-git-send-email-michael.d.kinney@intel.com> In-Reply-To: <1485888322-56072-2-git-send-email-michael.d.kinney@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [staging/edk2-test PATCH 1/6] edk2-test: Update Readme.md X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 06:39:20 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Mike: On windows build, there are missing steps.=20 1) set PYTHON_HOME=3DC:\Python27 2) Don't need set EDK_TOOLS_BIN, because no binary tools are required.=20 3) Don't need set PATH, because edksetup.bat will set PATH.=20 4) "edksetup.bat --nt32" this command can enable VS environment 5) "cd BaseTools & nmake & cd .." it will compile BaseTools C tools. I will= provide one patch to update BaseTools\Makefile, then no need to cd BaseToo= ls directory.=20 After update, the step will be simplified: set PYTHON_HOME=3DC:\Python27 set WORKSPACE=3D%CD% set PACKAGES_PATH=3D%WORKSPACE%\edk2;%WORKSPACE%\edk2-staging cd edk2 edksetup.bat --nt32 cd BaseTools nmake cd .. build -a IA32 -a X64 -t VS2015x86 -p TestFrameworkPkg/TestFrameworkPkg.dsc build -a IA32 -a X64 -t VS2015x86 -p TestCasePkg/TestCasePkg.dsc =20 On Linux build, Next it sets environment variables that must be set befor= e running edksetup.bat. Here should be edksetup.sh. And, its build step can= be simplified, because some things have been done in edksetup.sh. export WORKSPACE=3D`pwd` export PACKAGES_PATH=3D"$WORKSPACE/edk2:$WORKSPACE/edk2-staging" cd edk2 . edksetup.sh make -C BaseTools build -a IA32 -a X64 -t GCC49 -p TestFrameworkPkg/TestFrameworkPkg.dsc build -a IA32 -a X64 -t GCC49 -p TestCasePkg/TestCasePkg.dsc Thanks Liming >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >Michael Kinney >Sent: Wednesday, February 01, 2017 2:45 AM >To: edk2-devel@lists.01.org >Cc: Andrew Fish >Subject: [edk2] [staging/edk2-test PATCH 1/6] edk2-test: Update Readme.md > >* Add Supreeth Venkatesh to list of branch owners >* Clean up environment variable for Windows builds >* Add Linux Build Instructions > >Cc: Andrew Fish >Cc: Supreeth Venkatesh >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Michael Kinney >--- > Readme.md | 50 >+++++++++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 47 insertions(+), 3 deletions(-) > >diff --git a/Readme.md b/Readme.md >index 4ca0ffa..572014a 100644 >--- a/Readme.md >+++ b/Readme.md >@@ -5,6 +5,7 @@ edk2 repository and platform firmware that is based on the >edk2 repository. > > ## **edk2-stagaing branch owners** > * Michael Kinney >+* Supreeth Venkatesh > > ## **Features** > * Test harness that runs from the UEFI Shell >@@ -76,13 +77,13 @@ build output directory. > > ```cmd > git clone https://github.com/tianocore/edk2.git >-git clone https://github.com/tianocore/edk2-staging.git --brach edk2-test >+git clone https://github.com/tianocore/edk2-staging.git --branch edk2-tes= t > > set WORKSPACE=3D%CD% > set EDK_TOOLS_PATH=3D%WORKSPACE%\edk2\BaseTools >+set EDK_TOOLS_BIN=3D%EDK_TOOLS_PATH%\BinWrappers\WindowsLike > set PACKAGES_PATH=3D%WORKSPACE%\edk2;%WORKSPACE%\edk2-staging >-set EDK_TOOLS_BIN=3D%WORKSPACE%\BaseTools\BinWrappers\WindowsLike >-path=3D%path%;%WORKSPACE%\edk2\BaseTools\Bin\Win32 >+path=3D%path%;%EDK_TOOLS_PATH%\Bin\Win32 > > cd edk2 > edkSetup.bat >@@ -93,6 +94,49 @@ build -a IA32 -a X64 -t VS2015x86 -p >TestCasePkg/TestCasePkg.dsc > > ## **Linux Build Instructions** > >+### Pre-requisites >+ >+* GIT client: Available from https://git-scm.com/downloads >+* GCC 4.9 compiler or XCODE compiler >+ >+Create a new directory for an EDK II WORKSPACE. >+ >+The code block below shows the GIT clone operations required to pull the >edk2 >+repository, and the edk2-test branch from the edk2-staging repository. >+ >+Next it sets environment variables that must be set before running >+```edksetup.bat```. Since content is being pulled from multiple repositor= ies, >+the EDK II [Multiple Workspace]( >+https://github.com/tianocore/tianocore.github.io/wiki/Multiple_Workspace) >+feature is used. >+ >+Next, the ```edksetup.bat``` file is run to complete the initialization o= f an >+EDK II build environment. Two example build commands are shown. The >first one >+in ```TestFrameworkPkg/TestFrameworkPkg.dsc``` builds a test harness and >creates >+an installer in the build output directory. The second one in >+```TestCasePkg/TestCasePkg.dsc``` builds a sample test case using a test >library >+from the ```TestFrameworkPkg``` and adds the test case to the installer i= n the >+build output directory. >+ >+```cmd >+git clone https://github.com/tianocore/edk2.git >+git clone https://github.com/tianocore/edk2-staging.git --branch edk2-tes= t >+ >+export WORKSPACE=3D`pwd` >+export EDK_TOOLS_PATH=3D"$WORKSPACE/edk2/BaseTools" >+export PACKAGES_PATH=3D"$WORKSPACE/edk2:$WORKSPACE/edk2-staging" >+export >EDK_TOOLS_BIN=3D"$WORKSPACE/edk2/BaseTools/BinWrappers/PosixLike" >+export CONF_PATH=3D"$WORKSPACE/edk2/Conf" >+export PATH=3D"$PATH:$EDK_TOOLS_BIN" >+ >+cd edk2 >+make -C BaseTools >+. edksetup.sh >+ >+build -a IA32 -a X64 -t GCC49 -p TestFrameworkPkg/TestFrameworkPkg.dsc >+build -a IA32 -a X64 -t GCC49 -p TestCasePkg/TestCasePkg.dsc >+``` >+ > ## **Installation Instructions** > > * Copy the Build/SctPackage directory to media for the target platform >-- >2.6.3.windows.1 > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel