added BaseTools/Makefile
[efi/basetools/.git] / toolsetup.bat
index 1429983..c220e08 100755 (executable)
@@ -30,7 +30,6 @@ if defined VS71COMNTOOLS (
 \r
 :check_path\r
 if not defined PYTHON_FREEZER_PATH set PYTHON_FREEZER_PATH=C:\cx_Freeze\r
-if not exist %PYTHON_FREEZER_PATH% goto no_freezer_path\r
 \r
 pushd .\r
 cd %~dp0\r
@@ -74,13 +73,14 @@ IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\TianoCompress.exe" goto build
 IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\Trim.exe" goto build\r
 IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\VfrCompile.exe" goto build\r
 IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\Fpd2Dsc.exe" goto build\r
+IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\VolInfo.exe" goto build\r
 \r
 :skipbuild\r
 goto end\r
 \r
 :rebuild\r
 pushd .\r
-cd %BASE_TOOLS_PATH%\Source\C\r
+cd %BASE_TOOLS_PATH%\r
 call nmake cleanall\r
 del /f /q %BASE_TOOLS_PATH%\Bin\Win32\*.*\r
 popd\r
@@ -90,50 +90,11 @@ REM
 REM Start to build the Framework Tools\r
 REM\r
 \r
-echo.\r
-echo Building the C Tools\r
-echo.\r
-\r
 pushd .\r
-cd %BASE_TOOLS_PATH%\Source\C\r
+cd %BASE_TOOLS_PATH%\r
 call nmake\r
 popd\r
 \r
-echo.\r
-echo Building the Python Tools\r
-echo.\r
-\r
-set PYTHONPATH=%BASE_TOOLS_PATH%\Source\Python\r
-pushd .\r
-\r
-echo Generating build.exe\r
-cd %BASE_TOOLS_PATH%\Source\Python\build\r
-%PYTHON_FREEZER_PATH%\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8 --install-dir=%EDK_TOOLS_PATH%\Bin\Win32 build.py > NUL\r
-\r
-echo Generating GenFds.exe\r
-cd %BASE_TOOLS_PATH%\Source\Python\GenFds\r
-%PYTHON_FREEZER_PATH%\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8 --install-dir=%EDK_TOOLS_PATH%\Bin\Win32 GenFds.py > NUL\r
-\r
-echo Generating Trim.exe\r
-cd %BASE_TOOLS_PATH%\Source\Python\Trim\r
-%PYTHON_FREEZER_PATH%\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8 --install-dir=%EDK_TOOLS_PATH%\Bin\Win32 Trim.py > NUL\r
-\r
-echo Generating MigrationMsa2Inf.exe\r
-cd %BASE_TOOLS_PATH%\Source\Python\MigrationMsa2Inf\r
-%PYTHON_FREEZER_PATH%\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8 --install-dir=%EDK_TOOLS_PATH%\Bin\Win32 MigrationMsa2Inf.py > NUL\r
-\r
-echo Generating Fpd2Dsc.exe\r
-cd %BASE_TOOLS_PATH%\Source\Python\Fpd2Dsc\r
-%PYTHON_FREEZER_PATH%\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8 --install-dir=%EDK_TOOLS_PATH%\Bin\Win32 Fpd2Dsc.py > NUL\r
-\r
-popd\r
-echo Done!\r
-goto end\r
-\r
-:no_freezer_path\r
-echo.\r
-echo !!!WARNING!!! No cx_Freeze path found. Please install cx_Freeze and set PYTHON_FREEZER_PATH.\r
-echo.\r
 goto end\r
 \r
 :no_tools_path\r