BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf\r
+ CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
\r
#include <IndustryStandard/Pci22.h>\r
#include <Library/BootLogoLib.h>\r
+#include <Library/CapsuleLib.h>\r
#include <Library/DevicePathLib.h>\r
+#include <Library/HobLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/UefiBootManagerLib.h>\r
#include <Library/UefiLib.h>\r
VOID\r
)\r
{\r
+ EFI_STATUS Status;\r
+\r
+ if (GetBootModeHob() == BOOT_ON_FLASH_UPDATE) {\r
+ DEBUG ((DEBUG_INFO, "ProcessCapsules Before EndOfDxe ......\n"));\r
+ Status = ProcessCapsules ();\r
+ DEBUG ((DEBUG_INFO, "ProcessCapsules returned %r\n", Status));\r
+ }\r
+\r
//\r
// Signal EndOfDxe PI Event\r
//\r
//\r
EfiBootManagerConnectAll ();\r
\r
+ if (GetBootModeHob() == BOOT_ON_FLASH_UPDATE) {\r
+ DEBUG((DEBUG_INFO, "ProcessCapsules After EndOfDxe ......\n"));\r
+ Status = ProcessCapsules ();\r
+ DEBUG((DEBUG_INFO, "ProcessCapsules returned %r\n", Status));\r
+ }\r
+\r
//\r
// Enumerate all possible boot options.\r
//\r