From nobody Thu Mar 28 22:33:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+85543+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85543+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1641903265; cv=none; d=zohomail.com; s=zohoarc; b=i0VPfRKRGVnhQPgSigb9Ph0MVOLuASui7MGWhOSbcSalQOrGFgQW9m+lLEQdtVAmyj9yBGkpMRfqRLsWBwJTLcxOvfeeAFWdSE4Sm771N7ev6A54q4kHN4VlDoVX0PBQYBg6TaWUTyfYfMOvW5mRLniqsBm90OT6jCNXKsg/Sz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641903265; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=d1xSviMBgERMheW9zM+HOR9pEvaVEUbPCQiU6sSbac0=; b=lClEV3Bt4+lQVbQ8WCFZuSG/fy/Gex0FMwBnMssJC218dw8m/edU4AoHLtj1+BJiRSZZVG6oaFBIFhg99F/CXNWnxuvda8VDWSsbxzetgaUrBfXNIKrcVUjNo6JlqSFyGu373SfQhoQSkeL7QNaf1axx8ZQTOCV3WYOftfhVY4c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85543+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1641903265205609.9430958585833; Tue, 11 Jan 2022 04:14:25 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id ksomYY1788612xc4vAvODCC7; Tue, 11 Jan 2022 04:14:24 -0800 X-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 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" X-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" X-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: [edk2-devel] [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> In-Reply-To: <20220111121358.2629-1-mateusz.albecki@intel.com> References: <20220111121358.2629-1-mateusz.albecki@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mateusz.albecki@intel.com X-Gm-Message-State: 5CCqqcpWB34CI9cOP0sdhLZBx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1641903264; bh=cvpJ54JAjd9lEWCiCS9y4j08UIVv0+LgBaUr8GCDNN8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=whE0q/ejoi80IyfmgXAFw1WGPnVZ7qELnG9LHF+ZFOulTZfuNq2b4QRg3xmEuwcQr2e rmRJM2EmJ1Gmjgli2dId9UfBv/NUpTpYhWZ1VXvvpFlUT5pe7Hx8GZIIWoc41/Mqz47Ql c0e8xmpByTepXGgbOX5Cg6BtW03GbNe9pwY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1641903266173100002 Content-Type: text/plain; charset="utf-8" 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 =20 =20 # @@ -28,7 +28,7 @@ =20 [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 --=20 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. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#85543): https://edk2.groups.io/g/devel/message/85543 Mute This Topic: https://groups.io/mt/88346995/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-