13cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM @file 23cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM Windows batch file to build BIOS ROM 33cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM 43cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 53cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM This program and the accompanying materials 63cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM are licensed and made available under the terms and conditions of the BSD License 73cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM which accompanies this distribution. The full text of the license may be found at 83cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM http://opensource.org/licenses/bsd-license.php 93cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM 103cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 113cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 123cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM 133cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 143cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo off 153cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 163cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@time /t 173cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 183cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist %WORKSPACE%\edk2.log del %WORKSPACE%\edk2.log 193cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist %WORKSPACE%\unitool.log del %WORKSPACE%\unitool.log 203cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist %WORKSPACE%\Conf\build_rule.txt del %WORKSPACE%\Conf\build_rule.txt 213cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist %WORKSPACE%\Conf\FrameworkDatabase.db del %WORKSPACE%\Conf\FrameworkDatabase.db 223cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist %WORKSPACE%\Conf\target.txt del %WORKSPACE%\Conf\target.txt 233cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist %WORKSPACE%\Conf\tools_def.txt del %WORKSPACE%\Conf\tools_def.txt 243cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if exist conf\.cache rmdir /q /s conf\.cache 253cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 263cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set target=DEBUG 273cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 283cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "%1" == "release" set TARGET=RELEASE 293cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "%2" == "release" set TARGET=RELEASE 303cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "%3" == "release" set TARGET=RELEASE 313cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "%4" == "release" set TARGET=RELEASE 323cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "%5" == "release" set TARGET=RELEASE 333cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 343cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set PlatformType=NO_PLATFORM 353cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set config_file=.\Vlv2TbltDevicePkg\PlatformPkgConfig.dsc 363cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set EVN_debug_file=.\Vlv2TbltDevicePkg\BiosIdx64D.env 373cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set EVN_release_file=.\Vlv2TbltDevicePkg\BiosIdx64R.env 383cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set auto_config_inc=.\Vlv2TbltDevicePkg\AutoPlatformCFG.txt 393cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 403cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if "%1" == "MNW2" ( 413cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei set %PlatformType% = MNW2 423cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei @echo Setting Baley Bay platform configration and BIOS ID ... 433cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei findstr /b /v BOARD_ID %EVN_debug_file% > newfile.env 443cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo BOARD_ID = MNW2MAX >> newfile.env 453cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei type newfile.env > %EVN_debug_file% 463cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei findstr /b /v BOARD_ID %EVN_release_file% > newfile.env 473cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo BOARD_ID = MNW2MAX >> newfile.env 483cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei type newfile.env > %EVN_release_file% 493cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo DEFINE ENBDT_PF_BUILD = TRUE >> %auto_config_inc% 503cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo DEFINE X64_CONFIG = TRUE >> %auto_config_inc% 513cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei goto PLATFORM_SETTING_DONE 523cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 533cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 543cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if "%PlatformType%" == "NO_PLATFORM" ( 553cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei goto BldFail 563cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 573cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 583cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weirem clearup the temp file 593cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei:PLATFORM_SETTING_DONE 603cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@DEL NEWFILE.ENV 613cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@DEL NEWFILE.CFG 623cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 633cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM Define platform specific environment variables. 643cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM 653cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set PLATFORM_PACKAGE=Vlv2TbltDevicePkg 663cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set SCRIPT_ERROR=0 673cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 683cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM Set basic environment. 693cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 703cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo Run edksetup.bat batch file. 713cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 723cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@del Conf\build_rule.txt 733cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM @del Conf\tools_def.txt 743cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@call edksetup.bat 753cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 763cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 773cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 783cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo Set the VS2008 environment. 793cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 803cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if defined VS90COMNTOOLS ( 813cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei if not defined VSINSTALLDIR call "%VS90COMNTOOLS%\vsvars32.bat" 823cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei if /I "%VS90COMNTOOLS%" == "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\" ( 833cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei set TOOL_CHAIN_TAG=VS2008 843cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei ) else ( 853cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei set TOOL_CHAIN_TAG=VS2008x86 863cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei ) 873cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) else ( 883cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo. 893cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo !!! ERROR !!! VS2008 not installed correctly. VS90COMNTOOLS not defined. !!! 903cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei echo. 913cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei set SCRIPT_ERROR=1 923cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei goto :BldEnd 933cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 943cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 953cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 963cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo Set build environment. 973cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 983cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if not exist Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG% ( 993cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei mkdir Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG% 1003cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 1013cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1023cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1033cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@REM Set clean build option 1043cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@set CLEAN_BUILD_OPTION=-e 1053cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1063cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@findstr /V "ACTIVE_PLATFORM TARGET TARGET_ARCH TOOL_CHAIN_TAG BUILD_RULE_CONF" Conf\target.txt > Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt 1073cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1083cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo ACTIVE_PLATFORM = %PLATFORM_PACKAGE%/PlatformPkgX64.dsc >> Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt 1093cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo TARGET = %TARGET% >> Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt 1103cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo TARGET_ARCH = IA32 X64 >> Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt 1113cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo TOOL_CHAIN_TAG = %TOOL_CHAIN_TAG% >> Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt 1123cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo BUILD_RULE_CONF = Conf/build_rule.txt >> Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt 1133cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@move /Y Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\target.txt Conf 1143cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1153cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1163cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1173cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 1183cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo Create BiosIdx64. 1193cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 1203cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if not exist Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\X64 ( 1213cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei mkdir Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\X64 1223cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 1233cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1243cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if "%TARGET%" == "DEBUG" ( 1253cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei set BIOS_ID_FILE=BiosIdx64D.env 1263cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1273cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) else ( 1283cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei set BIOS_ID_FILE=BiosIdx64R.env 1293cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1303cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 1313cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1323cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1333cbfba02fef9dae07a041fdbf2e89611d72d6f90David WeiGenBiosId.exe -i %PLATFORM_PACKAGE%\%BIOS_ID_FILE% -o Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\X64\BiosId.bin 1343cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if %ERRORLEVEL% NEQ 0 goto BldFail 1353cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1363cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo off 1373cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weiecho Copy reference code ASL files. 1383cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1393cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1403cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "/s" == "%1" goto BldSilent 1413cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "/s" == "%2" goto BldSilent 1423cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "/s" == "%3" goto BldSilent 1433cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "/s" == "%4" goto BldSilent 1443cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if /i "/s" == "%5" goto BldSilent 1453cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1463cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weibuild -n %NUMBER_OF_PROCESSORS% 1473cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if %ERRORLEVEL% NEQ 0 goto BldFail 1483cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1493cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@If %SCRIPT_ERROR% EQU 1 goto BldFail 1503cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@goto BldSuccess 1513cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1523cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei:BldSilent 1533cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1543cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weibuild -n %NUMBER_OF_PROCESSORS% 1>>EDK2.log 2>&1 1553cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if %ERRORLEVEL% NEQ 0 goto BldFail 1563cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1573cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1583cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@If %SCRIPT_ERROR% EQU 1 goto BldFail 1593cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1603cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei:BldSuccess 1613cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo off 1623cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weidel Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\VlvX64.beforeconfig.fd 1>>EDK2.log 2>&1 1633cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weidel Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\HiiDefaultData.txt 1>>EDK2.log 2>&1 1643cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weicopy /y Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\Vlv.fd Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\VlvX64.beforeconfig.fd 1>>EDK2.log 2>&1 1653cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1663cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 1673cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo Extract setup default value from VFR (Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\HiiDefaultData.txt) 1683cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 1693cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weifce read -i Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\VlvX64.beforeconfig.fd > Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\HiiDefaultData.txt 1703cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1713cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1723cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo Update FD with default Hii value successfully! (both 'Setup' and 'SetupDefault') 1733cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 1743cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weifce mirror -i Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\VlvX64.beforeconfig.fd -o Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\VlvX64.fd Setup SetupDefault 1>>EDK2.log 2>&1 1753cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1763cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo off 1773cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weidel Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\Vlv.fd 1783cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weidel Vlv2TbltDevicePkg\RomImage\bios.rom 1793cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weiif not exist Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\ROM goto Gen8MImage 1803cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weidel /q /f Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\ROM\* 1813cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weird /Q Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\ROM 1823cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei:Gen8MImage 1833cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1843cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weicopy /b Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV\VlvX64.fd Vlv2TbltDevicePkg\RomImage\bios.rom 1853cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1863cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weipushd Vlv2TbltDevicePkg\RomImage\ 1873cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@if "%TARGET%" == "DEBUG" ( 1883cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei call signbiosX64_debug.bat 1893cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) else ( 1903cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei call signbiosX64_release.bat 1913cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei) 1923cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1933cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weicall ftoolbuild.bat 1943cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weicall ftoolbuild_sec_enable.bat 1953cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weipopd 1963cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 1973cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo off 1983cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weimkdir Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\ROM 1993cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weimove Vlv2TbltDevicePkg\RomImage\SPI_Image\* Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\ROM\ > NUL 2003cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 2013cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weicall GenBIOS.bat X64 2023cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 2033cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo on 2043cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 2053cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo TARGET: %TARGET% 2063cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo TOOL_CHAIN_TAG: %TOOL_CHAIN_TAG% 2073cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo BIOS location: Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\FV 2083cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo SPI Images location: Build\%PLATFORM_PACKAGE%\%TARGET%_%TOOL_CHAIN_TAG%\ROM 2093cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 2103cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo The EDKII BIOS build has successfully completed! 2113cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 2123cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@goto BldEnd 2133cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 2143cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei:BldFail 2153cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 2163cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo The EDKII BIOS Build has failed! 2173cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@echo. 2183cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weiexit /b 1 2193cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei 2203cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei:BldEnd 2213cbfba02fef9dae07a041fdbf2e89611d72d6f90David Wei@time /t 2223cbfba02fef9dae07a041fdbf2e89611d72d6f90David Weiexit /b 0 223