]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BuildEnv: remove useless check before setting $WORKSPACE
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Jul 2014 17:37:46 +0000 (17:37 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Jul 2014 17:37:46 +0000 (17:37 +0000)
As long as $EDK_TOOLS_PATH is properly set, the BaseTools/ directory
is not necessary in the workspace.  The BuildEnv file itself suggests
setting the variable if BaseTools/ is not available.

However, this only works if the user also sets $WORKSPACE.  Otherwise,
BuildEnv refuses to set WORKSPACE itself and does not even try to use
the preset $EDK_TOOLS_PATH.  Remove the check that fails, as it does
not have any practical benefit.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15702 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/BuildEnv

index 79f916a9d54b437b63108be28a6ac44fabaad13a..8ab5089bbee6d17703a630d994c663fe8736e6f6 100755 (executable)
@@ -23,14 +23,6 @@ SetWorkspace() {
     return 0
   fi
 
-  if [ ! ${BASH_SOURCE[0]} -ef ./BaseTools/BuildEnv ]
-  then
-    echo Run this script from the base of your tree.  For example:
-    echo "  cd /Path/To/Edk/Root"
-    echo "  . BaseTools/BuildEnv"
-    return 1
-  fi
-
   #
   # Set $WORKSPACE
   #