]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/bat: add capsule generation in bat.
authorJiewen Yao <jiewen.yao@intel.com>
Wed, 21 Sep 2016 03:53:47 +0000 (11:53 +0800)
committerJiewen Yao <jiewen.yao@intel.com>
Tue, 8 Nov 2016 14:49:55 +0000 (22:49 +0800)
If OPENSSL_PATH is set, the build process generates capsule.

Cc: David Wei <david.wei@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
Vlv2TbltDevicePkg/bld_vlv.bat

index 547b2b110accafb6076acf524ad00ca77662effb..e02a6052cd9485fa6c3b50df668b3a92f49e68fe 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 - 2016, 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
@@ -234,6 +234,7 @@ del /f/q ver_strings >nul
 \r
 set BIOS_Name=%BOARD_ID%_%Arch%_%BUILD_TYPE%_%VERSION_MAJOR%_%VERSION_MINOR%.ROM\r
 copy /y/b %BUILD_PATH%\FV\Vlv%Arch%.fd  %WORKSPACE%\%BIOS_Name% >nul\r
+copy /y/b %BUILD_PATH%\FV\Vlv%Arch%.fd  %BUILD_PATH%\FV\Vlv.ROM >nul\r
 \r
 echo.\r
 echo Build location:     %BUILD_PATH%\r
@@ -241,6 +242,12 @@ echo BIOS ROM Created:   %BIOS_Name%
 echo.\r
 echo -------------------- The EDKII BIOS build has successfully completed. --------------------\r
 echo.\r
+\r
+@REM build capsule here\r
+if "%openssl_path%" == "" goto Exit\r
+echo > %BUILD_PATH%\FV\SYSTEMFIRMWAREUPDATECARGO.Fv\r
+build -p %PLATFORM_PACKAGE%\PlatformCapsule.dsc\r
+\r
 goto Exit\r
 \r
 :Usage\r