) else (\r
if defined RECONFIG (\r
echo.\r
- echo Over-writing the files in the CONF_PATH directory\r
+ echo Overwriting the files in the CONF_PATH directory\r
echo using the default template files\r
echo.\r
)\r
)\r
copy %EDK_TOOLS_PATH%\Conf\target.template %CONF_PATH%\target.txt > nul\r
) else (\r
- if defined RECONFIG echo over-write ... target.template to %CONF_PATH%\target.txt\r
+ if defined RECONFIG echo overwrite ... target.template to %CONF_PATH%\target.txt\r
if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\target.template %CONF_PATH%\target.txt > nul\r
)\r
\r
)\r
copy %EDK_TOOLS_PATH%\Conf\tools_def.template %CONF_PATH%\tools_def.txt > nul\r
) else (\r
- if defined RECONFIG echo over-write ... tools_def.template to %CONF_PATH%\tools_def.txt\r
+ if defined RECONFIG echo overwrite ... tools_def.template to %CONF_PATH%\tools_def.txt\r
if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\tools_def.template %CONF_PATH%\tools_def.txt > nul\r
)\r
\r
IF NOT EXIST "%EDK_TOOLS_BIN%\GenFv.exe" goto check_c_tools\r
IF NOT EXIST "%EDK_TOOLS_BIN%\GenFw.exe" goto check_c_tools\r
IF NOT EXIST "%EDK_TOOLS_BIN%\GenSec.exe" goto check_c_tools\r
-IF NOT EXIST "%EDK_TOOLS_BIN%\Split.exe" goto check_c_tools\r
IF NOT EXIST "%EDK_TOOLS_BIN%\TianoCompress.exe" goto check_c_tools\r
IF NOT EXIST "%EDK_TOOLS_BIN%\VfrCompile.exe" goto check_c_tools\r
IF NOT EXIST "%EDK_TOOLS_BIN%\VolInfo.exe" goto check_c_tools\r
goto check_freezer_path\r
)\r
\r
+\r
+\r
:check_freezer_path\r
endlocal\r
+\r
+ %PYTHON_COMMAND% -c "import edk2basetools" >NUL 2>NUL\r
+ if %ERRORLEVEL% EQU 0 (\r
+ goto use_pip_basetools\r
+ ) else (\r
+ REM reset ERRORLEVEL\r
+ type nul>nul\r
+ goto use_builtin_basetools\r
+ )\r
+\r
+:use_builtin_basetools\r
+ @echo Using EDK2 in-source Basetools\r
if defined BASETOOLS_PYTHON_SOURCE goto print_python_info\r
set "PATH=%BASE_TOOLS_PATH%\BinWrappers\WindowsLike;%PATH%"\r
set BASETOOLS_PYTHON_SOURCE=%BASE_TOOLS_PATH%\Source\Python\r
set PYTHONPATH=%BASETOOLS_PYTHON_SOURCE%;%PYTHONPATH%\r
+ goto print_python_info\r
+\r
+:use_pip_basetools\r
+ @echo Using Pip Basetools\r
+ set "PATH=%BASE_TOOLS_PATH%\BinPipWrappers\WindowsLike;%PATH%"\r
+ set BASETOOLS_PYTHON_SOURCE=edk2basetools\r
+ goto print_python_info\r
\r
:print_python_info\r
echo PATH = %PATH%\r