From 1c023eb357632f1506d559ed54303ccee71ddf16 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 28 Jul 2014 17:37:46 +0000 Subject: [PATCH] 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 Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15702 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/BuildEnv | 8 -------- 1 file changed, 8 deletions(-) diff --git a/BaseTools/BuildEnv b/BaseTools/BuildEnv index 79f916a9d5..8ab5089bbe 100755 --- a/BaseTools/BuildEnv +++ b/BaseTools/BuildEnv @@ -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 # -- 2.39.2