summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhauch <larry.hauch@intel.com>2014-08-22 15:47:45 +0000
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-22 15:47:45 +0000
commitbd4fa6f53c489df94acd2a414f0cb2c11be6c7a4 (patch)
tree0e633ebbc59e94fc96f00672e4ef134b96db35d3
parent9ece15ad809c0c7620af22d8bd5fa9877b8b3e55 (diff)
downloadedk2-platforms-bd4fa6f53c489df94acd2a414f0cb2c11be6c7a4.tar.xz
Updated to check for NASM_PREFIXE system environment variable, also to fix an issue with path environment variable.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch <larry.hauch@intel.com> Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15880 6f19259b-4bc3-4df7-8a09-765794883524
-rwxr-xr-xEdk2Setup.bat20
1 files changed, 13 insertions, 7 deletions
diff --git a/Edk2Setup.bat b/Edk2Setup.bat
index bdf85c221f..171a00cad5 100755
--- a/Edk2Setup.bat
+++ b/Edk2Setup.bat
@@ -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
@@ -368,17 +374,17 @@
@REM Set up Visual Studio if required to build the Nt32Pkg/Nt32Pkg.dsc emulator
@if "%NT32PKG%"=="TRUE" (
- @if not defined VSINSTALLDIR @set "PATH=%ORIGINAL_PATH%"
+ @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" (
- @if not defined VS_PATH set "VS_PATH=%PATH%"
+ @if not defined VS_PATH set VS_PATH=%PATH%
)
@if defined VS_PATH @set "PATH=%VS_PATH%"
@if not defined VS_PATH @set "PATH=%ORIGINAL_PATH%"
-@set "PATH=%EDK_TOOLS_PATH%\Bin\Win32;%PATH%"
+@set "PATH=%EDK_TOOLS_PATH%\Bin\Win32";%PATH%
@if "%REBUILD_TOOLS%"=="TRUE" @goto Rebuild
@if "%SVN_PULL%"== "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