From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.6251.1641903264275705576 for ; Tue, 11 Jan 2022 04:14:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ffKam2GV; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: mateusz.albecki@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641903264; x=1673439264; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PEqH6i0RmGts4J2cBZj4VfBYdeo+MzGplmTDoW2g7ng=; b=ffKam2GVCrc+JtbaQ5O5YN2j/BYe36P0w8BEdH48ZgyeSoQ9olDhgttT a5LUMm4Ak+p05LuWhuZh9XqOCX7oWt5rTROq6sYxZHdJUZwqlkmbBTOaA Ufc43xLSuCFn9Gv0UD75WLxmM1XAhErHzgaIAyHXQJNG/JDEsj7egs2t2 Cuw45bGXUEdeOR0AmSpiGXbnR1LRO7zDumt4zesFIDhGR7j+dNSANr3/I HcaWEyZABnobsHcrR3GAfO/r+0SxfBHFdEQuz0cUqH7tq3ynBxAs+DETl sfFpIMW9DU63SHwig8+l0aF8gJcXSv6k+P125fLCzQ8cljtV6GmWfyJyh g==; X-IronPort-AV: E=McAfee;i="6200,9189,10223"; a="224168141" X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="224168141" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 04:14:23 -0800 X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="515074406" Received: from malbecki-mobl.ger.corp.intel.com ([10.249.154.106]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 04:14:21 -0800 From: "Albecki, Mateusz" To: devel@edk2.groups.io Cc: Mateusz Albecki , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH 1/1] MdePkg/UefiDevicePathLib: Add support for PEIMs Date: Tue, 11 Jan 2022 13:13:58 +0100 Message-Id: <20220111121358.2629-2-mateusz.albecki@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220111121358.2629-1-mateusz.albecki@intel.com> References: <20220111121358.2629-1-mateusz.albecki@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable DevicePathLib utilities are useful in PEI to locate the devices which need an opal unlock on S3 resume. This commit reuses the implementation done to support Standalone MM for PEI. Signed-off-by: Mateusz Albecki Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu --- ...iesStandaloneMm.c =3D> DevicePathUtilitiesPeiStandaloneMm.c} | 0 ...bStandaloneMm.inf =3D> UefiDevicePathLibPeiStandaloneMm.inf} | 4 ++-- MdePkg/MdePkg.dsc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename MdePkg/Library/UefiDevicePathLib/{DevicePathUtilitiesStandaloneMm.c= =3D> DevicePathUtilitiesPeiStandaloneMm.c} (100%) rename MdePkg/Library/UefiDevicePathLib/{UefiDevicePathLibStandaloneMm.inf= =3D> UefiDevicePathLibPeiStandaloneMm.inf} (93%) diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandalone= Mm.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesPeiStandaloneMm.c similarity index 100% rename from MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneM= m.c rename to MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesPeiStandalone= Mm.c diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm= .inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibPeiStandaloneMm.inf similarity index 93% rename from MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.= inf rename to MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibPeiStandaloneMm= .inf index 23fedf38b7..2f39a29aa2 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibPeiStandaloneMm.inf @@ -19,7 +19,7 @@ MODULE_TYPE =3D MM_STANDALONE PI_SPECIFICATION_VERSION =3D 0x00010032 VERSION_STRING =3D 1.0 - LIBRARY_CLASS =3D DevicePathLib | MM_STANDALONE MM_CORE= _STANDALONE + LIBRARY_CLASS =3D DevicePathLib | MM_STANDALONE MM_CORE= _STANDALONE PEIM = = # @@ -28,7 +28,7 @@ = [Sources] DevicePathUtilities.c - DevicePathUtilitiesStandaloneMm.c + DevicePathUtilitiesPeiStandaloneMm.c DevicePathToText.c DevicePathFromText.c UefiDevicePathLib.c diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index a94959169b..3345404cc1 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -111,7 +111,7 @@ MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtoc= ol.inf MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf - MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf + MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibPeiStandaloneMm.inf MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProt= ocol.inf MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevi= cePathProtocol.inf MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf -- = 2.28.0.windows.1 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydz= ial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-31= 6 | Kapital zakladowy 200.000 PLN. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata= i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wi= adomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiek= olwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). If you are not the intended recipient= , please contact the sender and delete all copies; any review or distributi= on by others is strictly prohibited.