summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library
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/Library
parent5a3641bfcdcf99fd76817833488f2af8abb69383 (diff)
downloadedk2-bf1ff540d9271c64f0c5323c79b20b21990626fe.tar.gz
edk2-bf1ff540d9271c64f0c5323c79b20b21990626fe.tar.bz2
edk2-bf1ff540d9271c64f0c5323c79b20b21990626fe.zip
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/Library')
-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
2 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c
index 096f835b90..096f835b90 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 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