mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Update edksetup.bat to check NASM system environment variable
If the NASM_PREFIX variable is not set, it would report warning message. If there exist the C:\nasm\nasm.exe file, it would set the NASM_PREFIX variable to C:\nasm\. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
daea123d24
commit
910e206238
10
edksetup.bat
10
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
|
IF NOT EXIST "%EDK_TOOLS_PATH%\toolsetup.bat" goto BadBaseTools
|
||||||
call %EDK_TOOLS_PATH%\toolsetup.bat %*
|
call %EDK_TOOLS_PATH%\toolsetup.bat %*
|
||||||
if /I "%1"=="Reconfig" shift
|
if /I "%1"=="Reconfig" shift
|
||||||
|
goto check_NASM
|
||||||
goto check_cygwin
|
goto check_cygwin
|
||||||
|
|
||||||
:BadBaseTools
|
:BadBaseTools
|
||||||
@ -141,6 +142,15 @@ goto check_cygwin
|
|||||||
@echo.
|
@echo.
|
||||||
goto end
|
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
|
:check_cygwin
|
||||||
if defined CYGWIN_HOME (
|
if defined CYGWIN_HOME (
|
||||||
if not exist "%CYGWIN_HOME%" (
|
if not exist "%CYGWIN_HOME%" (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user