summaryrefslogtreecommitdiff
path: root/BaseTools/toolsetup.bat
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2016-12-29 10:52:01 +0800
committerLiming Gao <liming.gao@intel.com>2017-01-04 16:33:38 +0800
commit61e947457e42320bd15e2f488742996359ca5420 (patch)
tree7623a65b1300586b0d7b27171bddb479f49d71f3 /BaseTools/toolsetup.bat
parent5d98c319bb4f4cbbff5ef0feec4cbab693140375 (diff)
downloadedk2-61e947457e42320bd15e2f488742996359ca5420.zip
edk2-61e947457e42320bd15e2f488742996359ca5420.tar.gz
edk2-61e947457e42320bd15e2f488742996359ca5420.tar.bz2
BaseTools toolsetup.bat: set PATH to include Bin Win32 directory
Bin Win32 directory includes antlr.exe. This tool is used when compile BaseTools source code. So, set it into PATH first. Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/toolsetup.bat')
-rwxr-xr-xBaseTools/toolsetup.bat2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat
index 92d0ba8..3801ce0 100755
--- a/BaseTools/toolsetup.bat
+++ b/BaseTools/toolsetup.bat
@@ -121,6 +121,7 @@ if /I "%1"=="/?" goto Usage
if exist %EDK_TOOLS_PATH%\Bin\Win32 (
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\Bin\Win32
) else (
+ set "PATH=%EDK_TOOLS_PATH%\Bin\Win32;%PATH%"
echo.
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
echo Please check the directory %EDK_TOOLS_PATH%\Bin\Win32
@@ -139,6 +140,7 @@ if /I "%1"=="/?" goto Usage
if exist %EDK_TOOLS_PATH%\Bin\Win32 (
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\Bin\Win32
) else (
+ set "PATH=%EDK_TOOLS_PATH%\Bin\Win32;%PATH%"
echo.
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
echo Please check the directory %EDK_TOOLS_PATH%\Bin\Win32