]> git.proxmox.com Git - mirror_edk2.git/blobdiff - edksetup.bat
a) Supported MAKE command in tools_def.txt
[mirror_edk2.git] / edksetup.bat
index 2f7fedef3337230e9b2b1b1d38ae6b42c5ac92a7..37c1b2615955ceb3d26cffdb2af53eae74dd699b 100644 (file)
 @REM\r
 @REM Set the WORKSPACE to the current working directory\r
 @REM\r
+pushd .\r
+cd %~dp0\r
 set WORKSPACE=%CD%\r
 \r
+@if /I not "%1"=="--nt32" goto check_new_build\r
+shift\r
+goto check_vc\r
+\r
+:check_new_build\r
 @if /I "%1"=="NewBuild" goto NewBuild\r
 \r
 :AntBuild\r
@@ -40,12 +47,13 @@ set WORKSPACE=%CD%
 :check_vc\r
 if defined VCINSTALLDIR goto check_cygwin\r
 if defined VS71COMNTOOLS (\r
 call "%VS71COMNTOOLS%\vsvars32.bat"\r
+ call "%VS71COMNTOOLS%\vsvars32.bat"\r
 ) else (\r
   echo.\r
   echo !!! WARNING !!!! Cannot find Visual Studio !!!\r
   echo.\r
 )\r
+goto check_new_build\r
 \r
 :check_cygwin\r
 if defined CYGWIN_HOME goto check_java\r
@@ -282,5 +290,6 @@ if not defined EDK_TOOLS_PATH set EDK_TOOLS_PATH=%WORKSPACE%\BaseTools
 @goto end\r
 \r
 :end\r
+@popd\r
 @echo on\r
 \r