]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Edk2Setup.bat: Fix build errors from VS tools PREFIX ENV missing
authorCinnamon Shia <cinnamon.shia@hpe.com>
Fri, 4 Nov 2016 02:19:46 +0000 (10:19 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sat, 5 Nov 2016 01:10:58 +0000 (09:10 +0800)
BaseTools/set_vsprefix_envs.bat is introduced for setting the PREFIX ENV
of VS tools in tools_def.template.
For example:

DEFINE VS2015_BIN      = ENV(VS2015_PREFIX)Vc\bin
DEFINE VS2015_DLL      = ENV(VS2015_PREFIX)Common7\IDE;DEF(VS2015_BIN)
DEFINE VS2015_BINX64   = DEF(VS2015_BIN)\x86_amd64

The issue is EdkSetup.bat calls BaseTools\set_vsprefix_envs.bat but
Edk2Setup.bat does not.

Edk2Setup.bat should call BaseTools/set_vsprefix_envs.bat  to set up the
PREFIX ENV of VS tools.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Edk2Setup.bat

index 68f46dc4262581d8b5754184ba586e9d91afe0a7..017e88de86c4b8495ec50e26a02ba543acb00f81 100755 (executable)
 @if defined REBUILD_TOOLS goto SetConf\r
 @if defined SVN_PULL goto SetConf\r
 \r
+@REM call set_vsprefix_envs.bat to set up the PREFIX env for VS tool path.\r
+@IF NOT exist "%EDK_TOOLS_PATH%\set_vsprefix_envs.bat" (\r
+  @echo.\r
+  @echo !!! ERROR !!! The set_vsprefix_envs.bat was not found !!!\r
+  @echo.\r
+  @goto ExitFailure\r
+)\r
+@call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat\r
+\r
 @echo.\r
 @echo Rebuilding of the tools is not required. Binaries of the latest,\r
 @echo tested versions of the tools have been tested and included in the\r