public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: "Kinney, Michael D" <michael.d.kinney@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: Andrew Fish <afish@apple.com>, "Gao, Liming" <liming.gao@intel.com>
Subject: Re: [staging/edk2-test PATCH 1/6] edk2-test: Update Readme.md
Date: Fri, 3 Feb 2017 06:39:16 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6D63C4@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <1485888322-56072-2-git-send-email-michael.d.kinney@intel.com>

Mike:
  On windows build, there are missing steps. 
1) set PYTHON_HOME=C:\Python27
2) Don't need set EDK_TOOLS_BIN, because no binary tools are required. 
3) Don't need set PATH, because edksetup.bat will set PATH. 
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 BaseTools directory. 

After update, the step will be simplified:
set PYTHON_HOME=C:\Python27
set WORKSPACE=%CD%
set PACKAGES_PATH=%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
   
  On Linux build, Next it sets environment variables that must be set before 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=`pwd`
export PACKAGES_PATH="$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 <afish@apple.com>
>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 <afish@apple.com>
>Cc: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com>
>Contributed-under: TianoCore Contribution Agreement 1.0
>Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
>---
> 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 <michael.d.kinney@intel.com>
>+* Supreeth Venkatesh <Supreeth.Venkatesh@arm.com>
>
> ## **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-test
>
> set WORKSPACE=%CD%
> set EDK_TOOLS_PATH=%WORKSPACE%\edk2\BaseTools
>+set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\BinWrappers\WindowsLike
> set PACKAGES_PATH=%WORKSPACE%\edk2;%WORKSPACE%\edk2-staging
>-set EDK_TOOLS_BIN=%WORKSPACE%\BaseTools\BinWrappers\WindowsLike
>-path=%path%;%WORKSPACE%\edk2\BaseTools\Bin\Win32
>+path=%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 repositories,
>+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 of 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 in the
>+build output directory.
>+
>+```cmd
>+git clone https://github.com/tianocore/edk2.git
>+git clone https://github.com/tianocore/edk2-staging.git --branch edk2-test
>+
>+export WORKSPACE=`pwd`
>+export EDK_TOOLS_PATH="$WORKSPACE/edk2/BaseTools"
>+export PACKAGES_PATH="$WORKSPACE/edk2:$WORKSPACE/edk2-staging"
>+export
>EDK_TOOLS_BIN="$WORKSPACE/edk2/BaseTools/BinWrappers/PosixLike"
>+export CONF_PATH="$WORKSPACE/edk2/Conf"
>+export PATH="$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


  parent reply	other threads:[~2017-02-03  6:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 18:45 [staging/edk2-test PATCH 0/6] Fix XCODE and GCC build issues Michael Kinney
2017-01-31 18:45 ` [staging/edk2-test PATCH 1/6] edk2-test: Update Readme.md Michael Kinney
2017-01-31 19:29   ` Michael Zimmermann
2017-01-31 22:41     ` Supreeth Venkatesh
2017-01-31 23:02       ` Andrew Fish
2017-01-31 23:08         ` Supreeth Venkatesh
2017-01-31 23:32       ` Kinney, Michael D
2017-01-31 23:42         ` Supreeth Venkatesh
2017-02-01  2:01     ` Kinney, Michael D
2017-02-03  6:39   ` Gao, Liming [this message]
2017-01-31 18:45 ` [staging/edk2-test PATCH 2/6] TestFrameworkPkg: Fix XCODE compatibility issues Michael Kinney
2017-01-31 18:45 ` [staging/edk2-test PATCH 3/6] TestFrameworkPkg: Fix VS2015 " Michael Kinney
2017-01-31 18:45 ` [staging/edk2-test PATCH 4/6] TestFrameworkPkg: Fix GCC " Michael Kinney
2017-01-31 18:45 ` [staging/edk2-test PATCH 5/6] TestCasePkg: Fix XCODE " Michael Kinney
2017-01-31 18:45 ` [staging/edk2-test PATCH 6/6] TestCasePkg: Fix GCC " Michael Kinney
2017-02-01 22:08 ` [staging/edk2-test PATCH 0/6] Fix XCODE and GCC build issues Andrew Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14D6D63C4@shsmsx102.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox