diff options
-rwxr-xr-x | edksetup.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/edksetup.sh b/edksetup.sh index 0b7e33fd77..f00154e25a 100755 --- a/edksetup.sh +++ b/edksetup.sh @@ -35,11 +35,14 @@ function HelpMsg() function SetupEnv() { - if [ -z "$WORKSPACE" ] + if [ -n "$EDK_TOOLS_PATH" ] + then + . $EDK_TOOLS_PATH/BuildEnv $* + elif [ -n "$WORKSPACE" ] then - . BaseTools/BuildEnv $* - else . $WORKSPACE/BaseTools/BuildEnv $* + else + . BaseTools/BuildEnv $* fi } |