MdePkg/UefiDevicePathLib: Add support for PEIMs

DevicePathLib utilities are useful in PEI to locate the devices which need
an opal unlock on S3 resume. This commit reuses the implementation done
for standalone MM support and makes the StandaloneMm library Base.

Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com>

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Mateusz Albecki 2022-07-01 22:11:47 +08:00 committed by mergify[bot]
parent 5a3641bfcd
commit bf1ff540d9
3 changed files with 4 additions and 4 deletions

View File

@ -16,10 +16,10 @@
BASE_NAME = UefiDevicePathLib
MODULE_UNI_FILE = UefiDevicePathLib.uni
FILE_GUID = D8E58437-44D3-4154-B7A7-EB794923EF12
MODULE_TYPE = MM_STANDALONE
MODULE_TYPE = BASE
PI_SPECIFICATION_VERSION = 0x00010032
VERSION_STRING = 1.0
LIBRARY_CLASS = DevicePathLib | MM_STANDALONE MM_CORE_STANDALONE
LIBRARY_CLASS = DevicePathLib
#
@ -28,7 +28,7 @@
[Sources]
DevicePathUtilities.c
DevicePathUtilitiesStandaloneMm.c
DevicePathUtilitiesBase.c
DevicePathToText.c
DevicePathFromText.c
UefiDevicePathLib.c

View File

@ -111,7 +111,7 @@
MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf
MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf