Add capsule image location info

It is useful to have capsule image location info since
capsule image could be configured to different places.

Signed-off-by: Guo Dong <guo.dong@intel.com>
This commit is contained in:
Guo Dong 2021-11-01 16:12:29 -07:00
parent 56d63ca01c
commit 992d637f27
2 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,7 @@
ConfigDataLib
ContainerLib
StringSupportLib
BootOptionLib
[Guids]
gLoaderMemoryMapInfoGuid

View File

@ -20,6 +20,7 @@
#include <Library/CryptoLib.h>
#include <Library/FirmwareUpdateLib.h>
#include <Library/ConfigDataLib.h>
#include <Library/BootOptionLib.h>
#include <ConfigDataCommonStruct.h>
/**
@ -403,6 +404,15 @@ GetCapsuleImage (
return EFI_NOT_FOUND;
}
DEBUG ((DEBUG_INFO, "Read capsule image from %a DevInstance (%4x) HwPart (%4x) SwPart (%4x) FS (%4a)",
GetBootDeviceNameString(CapsuleInfo->DevType), CapsuleInfo->DevInstance, CapsuleInfo->HwPart,
CapsuleInfo->SwPart, GetFsTypeString (CapsuleInfo->FsType)));
if (CapsuleInfo->FsType < EnumFileSystemMax) {
DEBUG ((DEBUG_INFO, " file name: %a\n", CapsuleInfo->FileName));
} else {
DEBUG ((DEBUG_INFO, " LBA offset: 0x%x \n", CapsuleInfo->LbaAddr));
}
Status = LoadCapsuleImage (CapsuleInfo, CapsuleImage, CapsuleImageSize);
if (EFI_ERROR(Status)) {
return Status;