diff options
author | Liming Gao <liming.gao@intel.com> | 2016-12-29 10:52:01 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-01-04 16:33:38 +0800 |
commit | 61e947457e42320bd15e2f488742996359ca5420 (patch) | |
tree | 7623a65b1300586b0d7b27171bddb479f49d71f3 /BaseTools | |
parent | 5d98c319bb4f4cbbff5ef0feec4cbab693140375 (diff) | |
download | edk2-platforms-61e947457e42320bd15e2f488742996359ca5420.tar.xz |
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')
-rwxr-xr-x | BaseTools/toolsetup.bat | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 92d0ba8834..3801ce033f 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
|