X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Edk2Setup.bat;h=cadc271df0c1a10de161012049ddc6d47df7992c;hp=bdf85c221f6b89edf6ca708382d65e57afe841d3;hb=dd94583b4885d89c6278ac2cf45c670aa4abb3df;hpb=bf47c6a11b1fca90fe17070e0197963d4d586603 diff --git a/Edk2Setup.bat b/Edk2Setup.bat index bdf85c221f..cadc271df0 100755 --- a/Edk2Setup.bat +++ b/Edk2Setup.bat @@ -47,8 +47,8 @@ @REM # @echo off @set SCRIPT_NAME=%0 -@set SCRIPT_VERSION=0.9.0. -@set SVN_REVISION=$Revision: 8 $ +@set SCRIPT_VERSION=0.9.2. +@set SVN_REVISION=$Revision$ @set RESET_ENVIRONMENT=FALSE @set NT32PKG=FALSE @set NT32_64=FALSE @@ -319,7 +319,13 @@ @if not exist "%EDK_TOOLS_PATH%" ( @mkdir %EDK_TOOLS_PATH% ) - +@if not defined NASM_PREFIX ( + @echo. + @echo WARNING : NASM_PREFIX environment variable is not set + @if exist "C:\nasm\nasm.exe" @set "NASM_PREFIX=C:\nasm\" + @if exist "C:\nasm\nasm.exe" @echo Found nasm.exe, setting the environment variable to C:\nasm\ + @if not exist "C:\nasm\nasm.exe" echo Attempting to build modules that require NASM will fail. +) @REM Set up the path to include the EDK_TOOLS_PATH\Bin\Win32 directory; this test determines @REM whether the path is in the workspace or a fully qualified path that may be outside of @REM the workspace @@ -370,7 +376,7 @@ @if "%NT32PKG%"=="TRUE" ( @if not defined VSINSTALLDIR @set "PATH=%ORIGINAL_PATH%" @if not defined NT32_X64 @call "%WORKSPACE%\BaseTools\get_vsvars.bat" - @if defined NT32_X64 call "%WORKSPACE%\BaseTools\Scripts\SetVisualStudio.bat + @if defined NT32_X64 call "%WORKSPACE%\BaseTools\Scripts\SetVisualStudio.bat" @set NT32_X64= ) @if "%NT32PKG%"=="TRUE" ( @@ -422,8 +428,8 @@ @call python --version > nul 2>&1 @if errorlevel 1 @set "PATH=%PYTHONHOME%\python.exe;%PATH%" @if not defined PYTHON_FREEZER_PATH ( - @if not exist %PYTHONHOME%\Scripts\cxfreeze.bat @goto NoCxFreeze - @set PYTHON_FREEZER_PATH=%PYTHONHOME%\Scripts + @if not exist "%PYTHONHOME%\Scripts\cxfreeze.bat" @goto NoCxFreeze + @set "PYTHON_FREEZER_PATH=%PYTHONHOME%\Scripts" ) @call "%WORKSPACE%\BaseTools\Scripts\SetVisualStudio.bat" @if errorlevel 1 @goto ExitFailure