]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c
MdePkg: UefiDevicePathLib: Support UefiDevicePathLib under StandaloneMm
authorKun Qin <kun.q@outlook.com>
Thu, 17 Dec 2020 22:35:38 +0000 (14:35 -0800)
committerKun Qin <kun.q@outlook.com>
Mon, 1 Feb 2021 18:03:35 +0000 (10:03 -0800)
commit14a746bb6a92d59669c67a970479558734cf2383
treec1af16a14b1dec01bf6aee5098ced3395968970b
parent1f0fa9187b6ed3e20b7d72b9e53dfc6a75496627
MdePkg: UefiDevicePathLib: Support UefiDevicePathLib under StandaloneMm

This change added an instance of UefiDevicePathLib for StandaloneMm. It
abstracts DevicePathFromHandle function into different files for
Standalone MM and other instances to avoid linking gBS into MM_STANDALONE
drivers.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Kun Qin <kun.q@outlook.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesDxeSmm.c [new file with mode: 0644]
MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneMm.c [new file with mode: 0644]
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf [new file with mode: 0644]
MdePkg/MdePkg.dsc