Michael Kubacki 
							
						 
					 
					
						
						
							
						
						1436aea4d5 
					 
					
						
						
							
							MdeModulePkg: Apply uncrustify changes  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 
Apply uncrustify changes to .c/.h files in the MdeModulePkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn > 
						
						
					 
					
						2021-12-07 17:24:28 +00:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						db52c7f755 
					 
					
						
						
							
							MdeModulePkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767 
Update use of DEBUG_CODE(Expression) if Expression is a complex code
block with if/while/for/case statements that use {}.
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn > 
						
						
					 
					
						2021-12-07 17:24:28 +00:00 
						 
				 
			
				
					
						
							
							
								Seonghyun Park 
							
						 
					 
					
						
						
							
						
						3445058aea 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix typo in error message  
						
						... 
						
						
						
						Fix typo in error message in CapsuleApp.
Signed-off-by: Seonghyun Park <shpark1@protonmail.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2021-08-02 01:56:19 +00:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						a3741780fe 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix spelling mistake  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2356 
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2020-08-07 18:53:01 +00:00 
						 
				 
			
				
					
						
							
							
								Oleksiy Yakovlev 
							
						 
					 
					
						
						
							
						
						5a4b24b89a 
					 
					
						
						
							
							MdeModulePkg: Add FMP Capsule Image Header extension  
						
						... 
						
						
						
						Add bitmask to structure which gives a binary-inspectable mechanism to
determine if a capsule contains an authentication section or depex section.
(UEFI 2.8 errata a, mantis 2026)
Signed-off-by: Oleksiy Yakovlev <oleksiyy@ami.com >
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2020-05-20 14:49:13 +00:00 
						 
				 
			
				
					
						
							
							
								Antoine Coeur 
							
						 
					 
					
						
						
							
						
						02d7b79771 
					 
					
						
						
							
							MdeModulePkg/Application: Fix various typos  
						
						... 
						
						
						
						Fix various typos in documentation, comments and debug strings.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Antoine Coeur <coeur@gmx.fr >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com >
Message-Id: <20200207010831.9046-11-philmd@redhat.com > 
						
						
					 
					
						2020-02-10 22:30:07 +00:00 
						 
				 
			
				
					
						
							
							
								Xu, Wei6 
							
						 
					 
					
						
						
							
						
						d9c919744b 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Enhance CapsuleApp for Fmp Capsule Dependency  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2421 
1. Enhance "CapsuleApp -P" to output the depex expression op-codes in
the EFI_FIRMWARE_IMAGE_DESCRIPTOR.
2. Enhance Last Attempt Status String with a new string to describe the
error LAST_ATTEMPT_STATUS_ERROR_UNSATISFIED_DEPENDENCIES.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2020-01-19 02:47:47 +00:00 
						 
				 
			
				
					
						
							
							
								Xu, Wei6 
							
						 
					 
					
						
						
							
						
						34651e7d76 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Improve comparisons in CapsuleOnDisk.c  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2028 
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=).
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-08-15 09:10:13 +08:00 
						 
				 
			
				
					
						
							
							
								Wei6 Xu 
							
						 
					 
					
						
						
							
						
						8165570e3e 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Enhance Capsule-On-Disk related functions.  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1840 
1. Introduce an internal header file to put definitions in it.
2. Add missing '\n' in usage.
3. Fix the dead loop of CapsuleApp -L.
4. Fix the bug that CapsuleApp -OD cannot perform capsules in sub-
folder.
5. Optimize the handling for option -NR and -OD to support both
'CapsuleApp <Capsule> -OD -NR' and 'CapsuleApp <Capsule> -NR -OD'.
6. Check if Capsule-On-Disk is supported by "OsIndicationsSupported"
variable firstly before processing capsules. If not supported, prompt
an error message and quit the process.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Chao B Zhang <chao.b.zhang@intel.com >
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Chao B Zhang <chao.b.zhang@intel.com >
Acked-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-06-26 15:08:18 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						57ec204e69 
					 
					
						
						
							
							Revert "Capsule-on-Disk entire Patch  
						
						... 
						
						
						
						This reverts commit 0d4aa276d16470a43160fd728608957837d124986b32af2e108636f70b5af17935321awei6.xu@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Zhang, Chao B <chao.b.zhang@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-06-21 10:25:25 +08:00 
						 
				 
			
				
					
						
							
							
								xuwei6 
							
						 
					 
					
						
						
							
						
						6470a43160 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Enhance Capsule-On-Disk related functions.  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1840 
1. Add missing '\n' in usage.
2. Fix the dead loop of CapsuleApp -L.
3. Fix the bug that CapsuleApp -OD cannot perform capsules in sub-
folder.
4. Optimize the handling for option -NR and -OD to support both
'CapsuleApp <Capsule> -OD -NR' and 'CapsuleApp <Capsule> -NR -OD'.
5. Check if Capsule-On-Disk is supported by "OsIndicationsSupported"
variable firstly before processing capsules. If not supported, prompt
an error message and quit the process.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Chao B Zhang <chao.b.zhang@intel.com >
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Chao B Zhang <chao.b.zhang@intel.com >
Acked-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-06-20 16:50:40 +08:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						9d510e61fc 
					 
					
						
						
							
							MdeModulePkg: Replace BSD License with BSD+Patent License  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1373 
Replace BSD 2-Clause License with BSD+Patent License.  This change is
based on the following emails:
  https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html 
  https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html 
RFCs with detailed process for the license change:
  V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html 
  V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html 
  V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
					
						2019-04-09 10:58:08 -07:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						68a4e15e14 
					 
					
						
						
							
							MdeModulePkg: Rename confusion function name  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1536 
To avoid the confusion caused by function name,
rename EfiBootManagerGetNextFullDevicePath to
EfiBootManagerGetNextLoadOptionDevicePath.
As an API function should add EFIAPI prefix for this function.
Cc: Ray Ni <ray.ni@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com > 
						
						
					 
					
						2019-02-25 09:14:21 +08:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						325ad62260 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix memory leak issue.  
						
						... 
						
						
						
						This issue is caused by FileInfoBuffer variable. This is a pointer array
and each elements also pointer to a memory buffer that is allocated and
returned by AllocateCopyPool function.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Cc: Zhang Chao B <chao.b.zhang@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-02-13 16:25:47 +08:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						1a35dd723b 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix potential NULL pointer dereference issue  
						
						... 
						
						
						
						To avoid potential NULL pointer dereference issue. Initialize them at
the beginning of the function. This patch is a supplement which was missed
at e98212cb5djian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-02-12 11:03:41 +08:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						e98212cb5d 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix potential NULL pointer dereference issue  
						
						... 
						
						
						
						To avoid potential NULL pointer dereference issue. Initialize them at
the beginning of the function.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-02-02 21:41:20 +08:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						9747329114 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Enhance CapsuleApp to support Capsule-on-Disk  
						
						... 
						
						
						
						BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1482 
CapsuleApp is used for trigger capsule update.
Add -OD option in CapsuleApp to support doing capsule update via storage.
Add -F and -L options to support dumping information feature.
Finish unit test for -F and -L options.
Already verify this feature on Denlow platform, success to update capsule
via hard disk with -OD option.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Cc: Zhang Chao B <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2019-01-31 14:08:01 +08:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						d67ade0994 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Add functions to support Capsule-on-Disk  
						
						... 
						
						
						
						BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1482 
This file provide some basic function to support Capsule-on-Disk.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Cc: Zhang Chao B <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2019-01-31 14:08:00 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Shenglei 
							
						 
					 
					
						
						
							
						
						8c06d18bc1 
					 
					
						
						
							
							MdeModulePkg CapsuleApp:Remove two redundant Guids  
						
						... 
						
						
						
						Remove two redundant Guids which are not used.
They are gEfiCertTypeRsa2048Sha256Guid and
gEfiCertPkcs7Guid.This is an improved version of
https://bugzilla.tianocore.org/show_bug.cgi?id=1062 
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2018-09-21 11:34:42 +08:00 
						 
				 
			
				
					
						
							
							
								shenglei 
							
						 
					 
					
						
						
							
						
						d82ebaa340 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Remove a redundant function  
						
						... 
						
						
						
						The function DumpImageAuthentication that is never called
has been removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1062 
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2018-08-21 16:28:53 +08:00 
						 
				 
			
				
					
						
							
							
								shenglei 
							
						 
					 
					
						
						
							
						
						131818ba5a 
					 
					
						
						
							
							MdeModulePkg: Remove redundant library classes and GUIDs  
						
						... 
						
						
						
						Some redundant library classes and GUIDs
have been removed in inf, .c and .h files.
https://bugzilla.tianocore.org/show_bug.cgi?id=1044 
https://bugzilla.tianocore.org/show_bug.cgi?id=1045 
https://bugzilla.tianocore.org/show_bug.cgi?id=1047 
https://bugzilla.tianocore.org/show_bug.cgi?id=1049 
https://bugzilla.tianocore.org/show_bug.cgi?id=1051 
https://bugzilla.tianocore.org/show_bug.cgi?id=1052 
https://bugzilla.tianocore.org/show_bug.cgi?id=1053 
https://bugzilla.tianocore.org/show_bug.cgi?id=1054 
https://bugzilla.tianocore.org/show_bug.cgi?id=1055 
https://bugzilla.tianocore.org/show_bug.cgi?id=1056 
https://bugzilla.tianocore.org/show_bug.cgi?id=1017 
https://bugzilla.tianocore.org/show_bug.cgi?id=1035 
https://bugzilla.tianocore.org/show_bug.cgi?id=1033 
https://bugzilla.tianocore.org/show_bug.cgi?id=1012 
https://bugzilla.tianocore.org/show_bug.cgi?id=1011 
https://bugzilla.tianocore.org/show_bug.cgi?id=1062 
v2:
1. Correct copyright year.
2. Fix alignment issue in AcpiPlatformDxe.inf.
3. Add DevicePathLib which is removed before in I2cHostDxe.inf.
4. Update NvmExpressPei.inf, NvmExpressPei.h, IScsiDxe.inf,
   IScsiDxe.inf, IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf
   and PiSmmCore.h for https://bugzilla.tianocore.org/show_bug.cgi?id=1062 .
v3:
1. Add https://bugzilla.tianocore.org/show_bug.cgi?id=1062  to the
   link list.
2. Remove DevicePathLib from I2cHostDxe.inf.
3. Update NvmExpressPei.inf, NvmExpressPei.h, UfsPciHcDxe.inf,
   UfsPciHcDxe.h, I2cHostDxe.inf, AtaBusDxe.inf, IScsiDxe.inf,
   IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf and PiSmmCore.h
   for https://bugzilla.tianocore.org/show_bug.cgi?id=1062 .
   (Forget to add UfsPciHcDxe.inf, UfsPciHcDxe.h, AtaBusDxe.inf,
   and I2cHostDxe.inf previously.)
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2018-08-20 14:53:45 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						fb57c30b70 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Check capsule header for -D and -N options  
						
						... 
						
						
						
						Then meaningful error message can be shown when the input image is
unexpected.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-27 16:04:16 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						8b03c82d36 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Prompt info for -C option  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-27 16:04:15 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						16299ec84a 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Index need be decimal for -P GET option  
						
						... 
						
						
						
						Also adjust the help information to be not too long to be suitable
for different display resolutions.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-27 16:04:15 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						e70d9b8c3c 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Refine -N option help information  
						
						... 
						
						
						
						-N option is used to append a Capsule Header to an existing
FMP capsule image with its ImageTypeId supported by the system.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-27 16:04:14 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						23d0833417 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix -D failed to dump Nest FMP capsule  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-27 16:04:13 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						4436f72220 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix VS2012 build failure caused by  5410502 
						
						... 
						
						
						
						The build failure is like below.
xxx\CapsuleApp.c(868) : error C2275: 'EFI_GUID' :
  illegal use of this type as an expression
        xxx/UefiBaseType.h(29) : see declaration of 'EFI_GUID'
xxx\CapsuleApp.c(868) : error C2146: syntax error :
  missing ';' before identifier 'ImageTypeId'
xxx\CapsuleApp.c(868) : error C2065: 'ImageTypeId' : undeclared identifier
xxx\CapsuleApp.c(869) : error C2275: 'UINTN' :
  illegal use of this type as an expression
        xxx\ProcessorBind.h(224) : see declaration of 'UINTN'
xxx\CapsuleApp.c(869) : error C2146: syntax error :
  missing ';' before identifier 'ImageIndex'
xxx\CapsuleApp.c(869) : error C2065: 'ImageIndex' : undeclared identifier
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Dandan Bi <dandan.bi@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com > 
						
						
					 
					
						2018-07-27 16:04:13 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						10944bc390 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Use EFI_UNSUPPORTED for incorrect Argc case  
						
						... 
						
						
						
						Align code to use EFI_UNSUPPORTED for all incorrect Argc cases.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-23 09:17:39 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						d9c640b928 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Check capsule header before using its Flags  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-23 09:17:35 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						95dd7a6ecd 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Show clear message when option is unrecognized  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-23 09:17:31 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						81e1276adf 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Do not parse bits in CapsuleFlags of ESRT  
						
						... 
						
						
						
						According to UEFI spec, only bits 0-15 of CapsuleFlags are
meaningful and CapsuleGuid specific, CAPSULE_FLAGS_PERSIST_ACROSS_RESET
CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE/CAPSULE_FLAGS_INITIATE_RESET
defined in UEFI spec are in bits 16-31, they should not be parsed in
CapsuleFlags of ESRT.
CapsuleFlags
The capsule flags field contains the CapsuleGuid flags (bits 0-15)
as defined in the EFI_CAPSULE_HEADER that will be set in the capsule
header.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-23 09:17:27 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						d4d9116775 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix memory leak in DumpFmpImage()  
						
						... 
						
						
						
						Image buffer should be freed after using.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-23 09:17:24 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						5410502f6d 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Check Arg count for -P GET option  
						
						... 
						
						
						
						Also add help info for CapsuleApp -P GET option.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-23 09:17:19 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						0c6f94dae5 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix typo EFI_CAPSULE_RPORT_GUID  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-13 10:32:19 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						045bb32364 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Refine -D option help information  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-13 10:32:18 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						1c6dd45b9b 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Check Arg count for -D option  
						
						... 
						
						
						
						Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-13 10:32:16 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						99fd30431d 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix NestedCapsuleHeader->Flags assigned wrong  
						
						... 
						
						
						
						(FwType == ESRT_FW_TYPE_DEVICEFIRMWARE) ? system : device
should be
(FwType == ESRT_FW_TYPE_SYSTEMFIRMWARE) ? system : device
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Ming Shao <ming.shao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-07-11 15:31:05 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						2e3032b4aa 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Check Buffer against NULL before freeing it  
						
						... 
						
						
						
						If the capsule from command line is not present,
Buffer will be random value when freeing it in DumpCapsule(),
then ASSERT will happen or other memory pool may be freed.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-05-08 11:16:49 +08:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						bf9b044e67 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Center bitmap at bottom of screen  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=907 
When -G option is used to convert a BMP file to a UX capsule,
the bitmap is centered horizontally and placed in the lower
half of the screen below the boot logo.
This matches examples shown in the following pages:
https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/user-experience-for-uefi-firmware-updates 
https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/boot-screen-components 
Checks are also made to make sure the bitmap provided
fits in the current GOP mode.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
					
						2018-03-21 20:55:27 -07:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						845f7cfef2 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix logic bug in CleanGatherList()  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=905 
Fix pointer math when more than one capsule is passed
to the CapsuleApp.  Use the ContinuationPointer from
the last array entry instead of the first array entry.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
					
						2018-03-21 20:55:27 -07:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						94f5c6001c 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix print info in BuildGatherList()  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=614 
Print (L"CapsuleApp: capsule data starts          at 0x%X with
 size 0x%X\n", (UINTN) CapsuleBuffer, FileSize);
It should use (UINTN) CapsuleBuffer[Index] and FileSize[Index]
as parameter.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Cloud Wang <winggundum82@163.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2017-07-03 17:53:16 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						8ecb1e9bef 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Fix mixed EOL format issue  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2017-05-11 12:58:55 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						8b17683a27 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Add directory support  
						
						... 
						
						
						
						Current CapsuleApp only supports input/output file from rootdirectory.
If the CapsuleApp and related file are put into subdirectory,
below message will be shown when running the CapsuleApp in shell.
"CapsuleApp: capsule image (Capsule image file name) is not found."
This patch is to add directory support for CapsuleApp
by using shell protocol.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2017-04-14 13:47:39 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						7043a90eee 
					 
					
						
						
							
							MdeModulePkg CapsuleApp: Add -NR (no-reset) option support  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=388 
Add -NR (no-reset) option support, once the option is specified,
no reset will be trigger for the capsule with flag
CAPSULE_FLAGS_PERSIST_ACROSS_RESET and no CAPSULE_FLAGS_INITIATE_RESET.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Xiaofeng Wang <winggundum82@163.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2017-03-21 14:48:10 +08:00 
						 
				 
			
				
					
						
							
							
								Ruiyu Ni 
							
						 
					 
					
						
						
							
						
						787f6744e7 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Use StrToGuid in BaseLib  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2017-02-28 11:30:33 +08:00 
						 
				 
			
				
					
						
							
							
								Jiewen Yao 
							
						 
					 
					
						
						
							
						
						de5209d5db 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Dump capsule name in record.  
						
						... 
						
						
						
						According to UEFI spec, capsule report variable should include
a null terminator for capsule name and capsule target, if they are
not present.
Cc: Feng Tian <feng.tian@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2016-12-23 10:08:04 +08:00 
						 
				 
			
				
					
						
							
							
								Dandan Bi 
							
						 
					 
					
						
						
							
						
						3a9ac06921 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix Guid format issues  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2016-12-20 10:51:17 +08:00 
						 
				 
			
				
					
						
							
							
								Dandan Bi 
							
						 
					 
					
						
						
							
						
						aaa61995af 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: Fix GUID/protocol format issues  
						
						... 
						
						
						
						Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2016-12-14 21:34:47 +08:00 
						 
				 
			
				
					
						
							
							
								Dandan Bi 
							
						 
					 
					
						
						
							
						
						11ee1bc93d 
					 
					
						
						
							
							MdeModulePkg: Make the comments align with the function  
						
						... 
						
						
						
						Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2016-12-14 21:34:45 +08:00 
						 
				 
			
				
					
						
							
							
								Jiewen Yao 
							
						 
					 
					
						
						
							
						
						c608cda5c1 
					 
					
						
						
							
							MdeModulePkg/CapsuleApp: add Internal for function name.  
						
						... 
						
						
						
						To prevent potential build failure.
Cc: Feng Tian <feng.tian@intel.com >
Cc: Jeff Fan <jeff.fan@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com > 
						
						
					 
					
						2016-12-01 19:07:52 +08:00