]> git.proxmox.com Git - mirror_edk2.git/commit - edksetup.bat
BaseTools: Fix incorrect %EDK_TOOLS_PATH%
authorYunhua Feng <yunhuax.feng@intel.com>
Tue, 7 Aug 2018 01:35:33 +0000 (09:35 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 8 Aug 2018 00:44:22 +0000 (08:44 +0800)
commit40d1adb3ebf215bacf89d866fd72bfad897daec3
treec146d7f18f463f98c61daf46c53bb42c055af4a4
parentb6e48ec6412eab0f21fdff5a045a7ee516574d44
BaseTools: Fix incorrect %EDK_TOOLS_PATH%

For non-root folder, such as "X:\test", the EDK_TOOLS_PATH will
resolve to "X:\test\edk2\BaseTools". This is OK.

But if WORKSPACE is at a root folder, such as "X:\", the EDK_TOOLS_PATH
will look like "X:\\BaseTools". The *double backslash* can fail the command
like "del" and thus affect the %ERRORLEVEL% variable, which may break
subsequent build processing.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
edksetup.bat