mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
43 lines
1.4 KiB
Batchfile
43 lines
1.4 KiB
Batchfile
@REM # Copyright (c) 2019, Intel Corporation
|
|
@REM #
|
|
@REM #This program is free software; you can redistribute it and/or
|
|
@REM #modify it under the terms of the GNU General Public License
|
|
@REM #as published by the Free Software Foundation; Version 2.
|
|
@REM #
|
|
@REM #This program is distributed in the hope that it will be useful,
|
|
@REM #but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
@REM #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
@REM #GNU General Public License for more details.
|
|
@REM #
|
|
@REM #You should have received a copy of the GNU General Public License
|
|
@REM #along with this program; if not, write to the Free Software
|
|
@REM #Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
@REM #
|
|
@REM #Contact information:
|
|
@REM #chipsec@intel.com
|
|
|
|
@REM # Need to find Visual Studio
|
|
call get_vsvars.bat
|
|
if not defined VCINSTALLDIR(
|
|
@echo.
|
|
@echo !!! ERROR !!!! Cannot find Visual Studio.
|
|
@echo Please download compression tools from https://github.com/tianocore/edk2-BaseTools-win32/archive/master.zip
|
|
@echo Unzip the archive into the chipsec_tools/compression/bin directory
|
|
@echo.
|
|
goto end
|
|
)
|
|
|
|
@REM # Need to set EDK_TOOLS_PATH and BASE_TOOLS_PATH to current directory and HOST_ARCH
|
|
set EDK_TOOLS_PATH=%CD%
|
|
|
|
set BASE_TOOLS_PATH=%CD%
|
|
|
|
if %PROCESSOR_ARCHITECTURE% == AMD64(
|
|
set HOST_ARCH=X64
|
|
)
|
|
|
|
@REM # Now call make and build the compression tools
|
|
nmake -c
|
|
|
|
:end
|