BuildEnv: remove useless check before setting $WORKSPACE

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
This commit is contained in:
Paolo Bonzini 2014-07-28 17:37:46 +00:00 committed by jljusten
parent d54934498f
commit 1c023eb357
1 changed files with 0 additions and 8 deletions

View File

@ -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
#