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:
parent
56d63ca01c
commit
992d637f27
|
@ -49,6 +49,7 @@
|
|||
ConfigDataLib
|
||||
ContainerLib
|
||||
StringSupportLib
|
||||
BootOptionLib
|
||||
|
||||
[Guids]
|
||||
gLoaderMemoryMapInfoGuid
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue