]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2TbltDevicePkg/Build_IFWI.bat
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / Vlv2TbltDevicePkg / Build_IFWI.bat
index e33a3bd1726568241d8c5e682cd0497f9b9c3ebb..c8e3ec3d76ccab4491ec9ed0c8fe9447bdebd9b1 100644 (file)
@@ -1,7 +1,7 @@
 @REM @file\r
 @REM   Windows batch file to build BIOS ROM\r
 @REM\r
-@REM Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+@REM Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 @REM This program and the accompanying materials\r
 @REM are licensed and made available under the terms and conditions of the BSD License\r
 @REM which accompanies this distribution.  The full text of the license may be found at\r
@@ -40,6 +40,16 @@ if /i "%~1"=="/l" (
     shift\r
     goto OptLoop\r
 )\r
+if /i "%~1"=="/y" (\r
+    set Build_Flags=%Build_Flags% /y\r
+    shift\r
+    goto OptLoop\r
+)\r
+if /i "%~1"=="/m" (\r
+    set Build_Flags=%Build_Flags% /m\r
+    shift\r
+    goto OptLoop\r
+)\r
 if /i "%~1" == "/c" (\r
     set Build_Flags=%Build_Flags% /c\r
     shift\r
@@ -121,11 +131,11 @@ if %ERRORLEVEL% NEQ 0 (
 echo.\r
 echo Finished Building BIOS.\r
 @REM Set BIOS_ID environment variable here.\r
-call Conf\BiosId.bat\r
+call %WORKSPACE%\Conf\BiosId.bat\r
 echo BIOS_ID=%BIOS_ID%\r
 \r
 :: Set the Board_Id, Build_Type, Version_Major, and Version_Minor environment variables\r
-find /v "#" Conf\BiosId.env > ver_strings\r
+find /v "#" %WORKSPACE%\Conf\BiosId.env > ver_strings\r
 for /f "tokens=1,3" %%i in (ver_strings) do set %%i=%%j\r
 del /f/q ver_strings >nul\r
 set BIOS_Name=%BOARD_ID%_%Arch%_%BUILD_TYPE%_%VERSION_MAJOR%_%VERSION_MINOR%.ROM\r
@@ -139,7 +149,7 @@ if "%Platform_Type%" == "BYTC" (
     pushd %PLATFORM_PACKAGE%\Stitch\r
 )\r
    :: IFWIStitch.bat [/nG] [/nM] [/nB] [/B BIOS.rom] [/C StitchConfig] [/S IFWISuffix]\r
-   call IFWIStitch.bat %Stitch_Flags% /B ..\..\%BIOS_Name% %IFWI_Suffix%\r
+   call IFWIStitch.bat %Stitch_Flags% /B %WORKSPACE%\%BIOS_Name% %IFWI_Suffix%\r
    \r
    @echo off\r
 popd\r
@@ -169,6 +179,11 @@ echo        IFWI Suffix:      Suffix to append to end of IFWI filename (default:
 echo.\r
 echo        See  Stitch/Stitch_Config.txt  for additional stitching settings.\r
 echo.\r
+echo        If capsule update is needed, please update CAPSULE_ENABLE = TRUE in Config.dsc.\r
+echo        If recovery is needed, please update RECOVERY_ENABLE = TRUE in Config.dsc.\r
+echo        If either of above is TRUE, please set OPENSSL_PATH in windows evironment\r
+echo        and put openssl.exe there, to generate final capsule image.\r
+echo.\r
 set exitCode=1\r
 \r
 :Exit\r