From bf1ff540d9271c64f0c5323c79b20b21990626fe Mon Sep 17 00:00:00 2001 From: Mateusz Albecki Date: Fri, 1 Jul 2022 22:11:47 +0800 Subject: [PATCH] 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 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Reviewed-by: Liming Gao --- ...athUtilitiesStandaloneMm.c => DevicePathUtilitiesBase.c} | 0 ...icePathLibStandaloneMm.inf => UefiDevicePathLibBase.inf} | 6 +++--- MdePkg/MdePkg.dsc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename MdePkg/Library/UefiDevicePathLib/{DevicePathUtilitiesStandaloneMm.c => DevicePathUtilitiesBase.c} (100%) rename MdePkg/Library/UefiDevicePathLib/{UefiDevicePathLibStandaloneMm.inf => UefiDevicePathLibBase.inf} (87%) diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c similarity index 100% rename from MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c rename to MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf similarity index 87% rename from MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf rename to MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf index 23fedf38b7..323043033f 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf @@ -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 diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index 3d8874e647..9daee93523 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -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