summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorMateusz Albecki <mateusz.albecki@intel.com>2022-07-01 22:11:47 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-07-23 02:11:31 +0000
commitbf1ff540d9271c64f0c5323c79b20b21990626fe (patch)
treec50a6463a21906eba8d393c04c84fa6c1c2d7e1b /MdePkg
parent5a3641bfcdcf99fd76817833488f2af8abb69383 (diff)
downloadedk2-bf1ff540d9271c64f0c5323c79b20b21990626fe.zip
edk2-bf1ff540d9271c64f0c5323c79b20b21990626fe.tar.gz
edk2-bf1ff540d9271c64f0c5323c79b20b21990626fe.tar.bz2
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>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c (renamed from MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c)0
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf (renamed from MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf)6
-rw-r--r--MdePkg/MdePkg.dsc2
3 files changed, 4 insertions, 4 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c
index 096f835..096f835 100644
--- a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c
+++ b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf
index 23fedf3..3230430 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 3d8874e..9daee93 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