diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-13 23:02:14 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-13 23:02:14 +0000 |
commit | 75f18f34356b29134a2bd9dbf8cc4889acfc44be (patch) | |
tree | be91eb1b95a9f45a362432c2a67ccff367f4aa86 /UnixPkg/build64.sh | |
parent | a069372cedb3b8bed90ef3f76d3af60f90fc3b16 (diff) | |
download | edk2-75f18f34356b29134a2bd9dbf8cc4889acfc44be.tar.gz edk2-75f18f34356b29134a2bd9dbf8cc4889acfc44be.tar.bz2 edk2-75f18f34356b29134a2bd9dbf8cc4889acfc44be.zip |
UnixPkg: Allow build.sh/build64.sh to be run from the edk2 root
You can now use this sequence to build UnixPkg:
$ cd /path/to/edk2
$ UnixPkg/build.sh
or
$ UnixPkg/build64.sh
The old method is still valid:
$ cd /path/to/edk2/UnixPkg
$ ./build.sh
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10934 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/build64.sh')
-rwxr-xr-x | UnixPkg/build64.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/UnixPkg/build64.sh b/UnixPkg/build64.sh index 68d705ed5c..246c33ef3b 100755 --- a/UnixPkg/build64.sh +++ b/UnixPkg/build64.sh @@ -1,6 +1,8 @@ #!/bin/bash # # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> +# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> +# # 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 @@ -20,7 +22,10 @@ shopt -s nocasematch if [ -z "$WORKSPACE" ] then echo Initializing workspace - cd .. + if [ ! -e `pwd`/edksetup.sh ] + then + cd .. + fi # This version is for the tools in the BaseTools project. # this assumes svn pulls have the same root dir # export EDK_TOOLS_PATH=`pwd`/../BaseTools @@ -101,13 +106,10 @@ do exit $? fi - if [[ $arg == shell ]]; then - build -p $WORKSPACE/GccShellPkg/GccShellPkg.dsc -a X64 -t $UNIXPKG_TOOLS -n 3 $2 $3 $4 $5 $6 $7 $8 + build -p $WORKSPACE/GccShellPkg/GccShellPkg.dsc -a X64 -t $UNIXPKG_TOOLS -n 3 $2 $3 $4 $5 $6 $7 $8 exit $? fi - - done |