BaseTools/toolsetup.bat: Set IASL_PREFIX when using Mingw-w64 on Windows
If IASL_PREFIX is not already defined, then edksetup.bat should set it. This unifies the behavior between Visual Studio and Mingw-w64. Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
e2a30df32e
commit
7c2e2d4f1a
@@ -242,7 +242,12 @@ if not defined WINDDK3790_PREFIX (
|
||||
)
|
||||
|
||||
if not defined IASL_PREFIX (
|
||||
set IASL_PREFIX=C:\ASL\
|
||||
if exist "C:\ASL\" (
|
||||
set IASL_PREFIX=C:\ASL\
|
||||
) else (
|
||||
@echo.
|
||||
@echo !!! WARNING !!! IASL_PREFIX environment variable is not set
|
||||
)
|
||||
)
|
||||
|
||||
popd
|
||||
|
||||
@@ -333,6 +333,17 @@ if defined VS2022 (
|
||||
call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat
|
||||
call %EDK_TOOLS_PATH%\get_vsvars.bat
|
||||
)
|
||||
if defined BASETOOLS_MINGW_BUILD (
|
||||
if not defined IASL_PREFIX (
|
||||
REM For VS builds this environment variable is set via set_vsprefix_envs.bat
|
||||
if exist "C:\ASL\" (
|
||||
set IASL_PREFIX=C:\ASL\
|
||||
) else (
|
||||
@echo.
|
||||
@echo !!! WARNING !!! IASL_PREFIX environment variable is not set
|
||||
)
|
||||
)
|
||||
)
|
||||
if %SCRIPT_ERROR% NEQ 0 (
|
||||
@echo.
|
||||
@echo !!! ERROR !!! %VSTool% is not installed !!!
|
||||
|
||||
Reference in New Issue
Block a user