From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.2219.1660106284690107438 for ; Tue, 09 Aug 2022 21:38:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=XnzwoSba; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660106284; x=1691642284; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3kVPO6wUTWpbgB9NcJlF5BnK8AlkIZ7UakluKREnK8Y=; b=XnzwoSbac9DeWGqpYF9KWo5928YQNTbWBmv5VXSDTrW73PFbxGuWtxNs snOIMk4m8QqqMRotzB1ZAkBjQkbWExiodQ2sPMjh0FLDttqHFiEku9sX0 nRuhVMLswbUxPC5QfBfO56AyEolp4bVK5v2YgSt21R7VyTTvaK1nbeeOi SGlBhRxV6gaM55nlSdgbI5I1TEV61o0vTCiFHiNirRXYwIdH1nQJRYSBN 5RzwdlBlDtf1kGcCaUuTYWKPpcNzLd+OoeY4r2SvsPLfMG+lhF5LMUMRE w/HKCvk4w9+GUym3XzISGYWi/9+0ZSBmdmuUWDfXShHC1fz8Ul6DvMDmx g==; X-IronPort-AV: E=McAfee;i="6400,9594,10434"; a="291782035" X-IronPort-AV: E=Sophos;i="5.93,226,1654585200"; d="scan'208";a="291782035" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2022 21:38:03 -0700 X-IronPort-AV: E=Sophos;i="5.93,226,1654585200"; d="scan'208";a="581080710" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.25.232]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2022 21:38:03 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Liming Gao , Zhiguang Liu , Mateusz Albecki , Yanbo Huang Subject: [Patch 1/1] MdePkg/Library/UefiDevicePathLib: Add back StandaloneMm INF file Date: Tue, 9 Aug 2022 21:37:45 -0700 Message-Id: <20220810043745.377-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 [lgao4] Cc: Zhiguang Liu [LiuZhiguang001] Cc: Mateusz Albecki Cc: Yanbo Huang Signed-off-by: Michael D Kinney --- .../UefiDevicePathLibStandaloneMm.inf | 78 +++++++++++++++++++ MdePkg/MdePkg.dsc | 1 + 2 files changed, 79 insertions(+) create mode 100644 MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf new file mode 100644 index 000000000000..97db485e23f8 --- /dev/null +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf @@ -0,0 +1,78 @@ +## @file +# Instance of Device Path Library based on Memory Allocation Library. +# +# Device Path Library that layers on top of the Memory Allocation Library. +# +# This library instances is deprecated and should no longer be used. Ue +# MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf instead. +# +# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
+# Copyright (c) Microsoft Corporation. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# +## + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = UefiDevicePathLibStandaloneMm + MODULE_UNI_FILE = UefiDevicePathLib.uni + FILE_GUID = 7B60A2BC-9259-48A8-8279-971412EECAB3 + MODULE_TYPE = BASE + PI_SPECIFICATION_VERSION = 0x00010032 + VERSION_STRING = 1.0 + LIBRARY_CLASS = DevicePathLib + + +# +# VALID_ARCHITECTURES = IA32 X64 EBC +# + +[Sources] + DevicePathUtilities.c + DevicePathUtilitiesBase.c + DevicePathToText.c + DevicePathFromText.c + UefiDevicePathLib.c + UefiDevicePathLib.h + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + BaseLib + MemoryAllocationLib + DebugLib + BaseMemoryLib + PcdLib + PrintLib + +[Guids] + ## SOMETIMES_CONSUMES ## GUID + gEfiVTUTF8Guid + ## SOMETIMES_CONSUMES ## GUID + gEfiVT100Guid + ## SOMETIMES_CONSUMES ## GUID + gEfiVT100PlusGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiPcAnsiGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiUartDevicePathGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiSasDevicePathGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiVirtualDiskGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiVirtualCdGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiPersistentVirtualDiskGuid + ## SOMETIMES_CONSUMES ## GUID + gEfiPersistentVirtualCdGuid + +[Protocols] + gEfiDevicePathProtocolGuid ## SOMETIMES_CONSUMES + gEfiDebugPortProtocolGuid ## UNDEFINED + +[Pcd] + gEfiMdePkgTokenSpaceGuid.PcdMaximumDevicePathNodeCount ## SOMETIMES_CONSUMES diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index 9daee93523e5..cc1ac196a931 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -112,6 +112,7 @@ [Components] MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf + MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf -- 2.37.1.windows.1