set exitCode=0\r
set BackupRom=1\r
set UpdateVBios=1\r
+set SpiLock=0\r
set Stitch_Config=Stitch_Config.txt\r
copy /y nul Stitching.log >nul\r
\r
shift\r
goto OptLoop\r
)\r
+if /i "%~1"=="/yL" (\r
+ set SpiLock=1\r
+ shift\r
+ goto OptLoop\r
+)\r
+\r
if /i "%~1"=="/B" (\r
if "%~2"=="" goto Usage\r
if not exist %~2 echo BIOS not found. & goto Usage\r
)\r
)\r
\r
+if %SpiLock% EQU 1 (\r
+ set IFWI_HEADER_FILE=IFWIHeader\!IFWI_HEADER!_SPILOCK.bin\r
+) else (\r
+ set IFWI_HEADER_FILE=IFWIHeader\!IFWI_HEADER!.bin\r
+)\r
\r
:: **********************************************************************\r
:: The Main Stitching Loop\r
echo.\r
echo Stitching IFWI for !BIOS_Rom! ...\r
echo ---------------------------------------------------------------------------\r
- echo IFWI Header: !IFWI_HEADER!.bin, SEC version: !SEC_VERSION!, \r
+ echo IFWI Header: !IFWI_HEADER_FILE!, SEC version: !SEC_VERSION!, \r
echo BIOS Version: !BIOS_Version!\r
\r
echo Platform Type: !Platform_Type!, IFWI Prefix: %BIOS_ID%\r
echo.\r
echo Generating IFWI... %BIOS_ID%.bin\r
echo.\r
- copy /b/y IFWIHeader\!IFWI_HEADER!.bin + ..\..\Vlv2MiscBinariesPkg\SEC\!SEC_VERSION!\VLV_SEC_REGION.bin + IFWIHeader\Vacant.bin + !BIOS_Rom! %BIOS_ID%.bin\r
+ \r
+ copy /b/y !IFWI_HEADER_FILE! + ..\..\Vlv2MiscBinariesPkg\SEC\!SEC_VERSION!\VLV_SEC_REGION.bin + ..\..\Vlv2MiscBinariesPkg\SEC\!SEC_VERSION!\Vacant.bin + !BIOS_Rom! %BIOS_ID%.bin\r
echo.\r
echo ===========================================================================\r
)\r