]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Core: Support standalone MM in FV2 protocol GetNextFile().
authorSiyuan Fu <siyuan.fu@intel.com>
Wed, 28 Oct 2020 02:57:01 +0000 (10:57 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 29 Oct 2020 05:29:42 +0000 (05:29 +0000)
commitc26e291375d1808a0ec5af9002dd0ebca5959020
tree1de3fe661703abe25d08020e0bd9b44ba657d694
parent6ad819c1abe3c49b9648769f5111eca491c0add3
MdeModulePkg/Core: Support standalone MM in FV2 protocol GetNextFile().

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3028

The FirmwareVolume2Protocol->GetNextFile() produced by DXE Core can be used
to search for a file based on the value of *FileType input. However, this
service will always return EFI_NOT_FOUND if the input FileType is set to
EFI_FV_FILETYPE_MM_STANDALONE or EFI_FV_FILETYPE_MM_CORE_STANDALONE, Which
means user can't use this service to search any standalone MM image in that
FV.
This patch update the FirmwareVolume2Protocol->GetNextFile() service to
support searching standalone MM module.

Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c