X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=edksetup.bat;fp=edksetup.bat;h=f066d869e1e3f8e146dc8e64a554e50c638da84d;hp=e065b6470a2b988d587b021e87524ad86cd9b738;hb=910e206238e83be352e840d2e668266257fcf7fa;hpb=daea123d247aebb01f6c54e10ed1e0b10dfae957 diff --git a/edksetup.bat b/edksetup.bat index e065b6470a..f066d869e1 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -125,6 +125,7 @@ if exist %EDK_TOOLS_PATH%\Source set BASE_TOOLS_PATH=%EDK_TOOLS_PATH% IF NOT EXIST "%EDK_TOOLS_PATH%\toolsetup.bat" goto BadBaseTools call %EDK_TOOLS_PATH%\toolsetup.bat %* if /I "%1"=="Reconfig" shift +goto check_NASM goto check_cygwin :BadBaseTools @@ -141,6 +142,15 @@ goto check_cygwin @echo. goto end +:check_NASM +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. +) + :check_cygwin if defined CYGWIN_HOME ( if not exist "%CYGWIN_HOME%" (