]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/Library/UefiDevicePathLib: Add back StandaloneMm INF file
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 10 Aug 2022 04:22:54 +0000 (21:22 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 10 Aug 2022 21:43:49 +0000 (21:43 +0000)
REF: https://github.com/tianocore/edk2/pull/3130

The above PR removed UefiDevicePathLibStandaloneMm.inf, which is
a non-backwards compatible change and does not provide time for
downstream platforms to use the UefiDevicePathLibBase.inf.

Add UefiDevicePathLibStandaloneMm.inf back, but add comments that
it is deprecated and that UefiDevicePathLibBase.inf should be used
instead.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Mateusz Albecki <mateusz.albecki@intel.com>
Cc: Yanbo Huang <yanbo.huang@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf [new file with mode: 0644]
MdePkg/MdePkg.dsc

diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf
new file mode 100644 (file)
index 0000000..97db485
--- /dev/null
@@ -0,0 +1,78 @@
+## @file\r
+# Instance of Device Path Library based on Memory Allocation Library.\r
+#\r
+# Device Path Library that layers on top of the Memory Allocation Library.\r
+#\r
+# This library instances is deprecated and should no longer be used.  Ue\r
+# MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf instead.\r
+#\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) Microsoft Corporation.\r
+#\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+#\r
+##\r
+\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = UefiDevicePathLibStandaloneMm\r
+  MODULE_UNI_FILE                = UefiDevicePathLib.uni\r
+  FILE_GUID                      = 7B60A2BC-9259-48A8-8279-971412EECAB3\r
+  MODULE_TYPE                    = BASE\r
+  PI_SPECIFICATION_VERSION       = 0x00010032\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = DevicePathLib\r
+\r
+\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 EBC\r
+#\r
+\r
+[Sources]\r
+  DevicePathUtilities.c\r
+  DevicePathUtilitiesBase.c\r
+  DevicePathToText.c\r
+  DevicePathFromText.c\r
+  UefiDevicePathLib.c\r
+  UefiDevicePathLib.h\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+\r
+[LibraryClasses]\r
+  BaseLib\r
+  MemoryAllocationLib\r
+  DebugLib\r
+  BaseMemoryLib\r
+  PcdLib\r
+  PrintLib\r
+\r
+[Guids]\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiVTUTF8Guid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiVT100Guid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiVT100PlusGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiPcAnsiGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiUartDevicePathGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiSasDevicePathGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiVirtualDiskGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiVirtualCdGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiPersistentVirtualDiskGuid\r
+  ## SOMETIMES_CONSUMES  ## GUID\r
+  gEfiPersistentVirtualCdGuid\r
+\r
+[Protocols]\r
+  gEfiDevicePathProtocolGuid                    ## SOMETIMES_CONSUMES\r
+  gEfiDebugPortProtocolGuid                     ## UNDEFINED\r
+\r
+[Pcd]\r
+  gEfiMdePkgTokenSpaceGuid.PcdMaximumDevicePathNodeCount    ## SOMETIMES_CONSUMES\r
index 9daee93523e5ad9fddb283e00c2d9b1e05c9f766..cc1ac196a9319bb66b9c75ec573febffca9244f6 100644 (file)
   MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf\r
   MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
   MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf\r
+  MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf\r
   MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf\r
   MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf\r
   MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r