From nobody Sat May 11 22:32:18 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+90984+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+90984+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1656684728; cv=none; d=zohomail.com; s=zohoarc; b=FpJQ5v92Kh+D2XHEakxMRbwywWH772olAljEOKcaDmw/G6a4V1h3l8++K/r0puGuM8Ba78VD5h4trRf1QX31w9r2FvYFpu+5c0svHKO84nDzRnbwoSHhxh5VA3zVkJtm0yY2zJAOeOipxW+67hXefT57F++i+FgNIfTTfKqJNeI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1656684728; 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=uuneF/95xZzgZKurTi0rmnMyU+oKkuIoprJxaCbCR+Y=; b=ead3RaXDydfHyZomGiMgCSFRJaThdN1j8NcW0N7UGLyixAR4FOxn829KMEM67KsGEpW2sIOFNv39dc6JEMDl5GtOKMVTlcI+aUe2+2ywWYzD640NaNRT8kk2BefTpF9DU9mOMxcAFpC3T893tsnrt9N98aKLgx5dOzWXuzvWzas= 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+90984+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 1656684728538640.7656671414921; Fri, 1 Jul 2022 07:12:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 1ufsYY1788612xLoD0tJN9Ug; Fri, 01 Jul 2022 07:12:08 -0700 X-Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web09.39247.1656684724293268303 for ; Fri, 01 Jul 2022 07:12:07 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10394"; a="265690277" X-IronPort-AV: E=Sophos;i="5.92,237,1650956400"; d="scan'208";a="265690277" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2022 07:12:07 -0700 X-IronPort-AV: E=Sophos;i="5.92,237,1650956400"; d="scan'208";a="918486775" X-Received: from malbecki-mobl.ger.corp.intel.com ([10.213.27.36]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2022 07:12:05 -0700 From: "Albecki, Mateusz" To: devel@edk2.groups.io Cc: Mateusz Albecki , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCHv3 1/1] MdePkg/UefiDevicePathLib: Add support for PEIMs Date: Fri, 1 Jul 2022 16:11:47 +0200 Message-Id: <20220701141147.1607-2-mateusz.albecki@intel.com> In-Reply-To: <20220701141147.1607-1-mateusz.albecki@intel.com> References: <20220701141147.1607-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: Apsf6oldqZMkTAwmnUz6RtfMx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1656684728; bh=DIp3cFTrnAjIaGBA/RrthqeLhXHWAnoBSmqydWP43uw=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=dRoo/MXyCfnRhCpGtreSVk395GCmb76jQS6NCCVlHof/5V/HT/TehrN8EWIKyNdbm5G R7+7y9LrfMn47oiGjQ9bhLeXCFWtjlL3wrJWD68uiGQOJ7X6ANl0N+oEqRzeUc88pFoU7 j/aCTg1RL3cbfNSvobSlycvWh7Dzurn5eVs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1656684729074100009 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 for standalone MM support and makes the StandaloneMm library Base. Signed-off-by: Mateusz Albecki Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu --- ...athUtilitiesStandaloneMm.c =3D> DevicePathUtilitiesBase.c} | 0 ...icePathLibStandaloneMm.inf =3D> UefiDevicePathLibBase.inf} | 6 +++--- MdePkg/MdePkg.dsc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename MdePkg/Library/UefiDevicePathLib/{DevicePathUtilitiesStandaloneMm.c= =3D> DevicePathUtilitiesBase.c} (100%) rename MdePkg/Library/UefiDevicePathLib/{UefiDevicePathLibStandaloneMm.inf= =3D> UefiDevicePathLibBase.inf} (87%) diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandalone= Mm.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c similarity index 100% rename from MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesStandaloneM= m.c rename to MdePkg/Library/UefiDevicePathLib/DevicePathUtilitiesBase.c diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm= .inf b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf similarity index 87% rename from MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.= inf rename to MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf index 23fedf38b7..323043033f 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf @@ -16,10 +16,10 @@ BASE_NAME =3D UefiDevicePathLib MODULE_UNI_FILE =3D UefiDevicePathLib.uni FILE_GUID =3D D8E58437-44D3-4154-B7A7-EB794923EF12 - MODULE_TYPE =3D MM_STANDALONE + MODULE_TYPE =3D BASE PI_SPECIFICATION_VERSION =3D 0x00010032 VERSION_STRING =3D 1.0 - LIBRARY_CLASS =3D DevicePathLib | MM_STANDALONE MM_CORE= _STANDALONE + LIBRARY_CLASS =3D DevicePathLib =20 =20 # @@ -28,7 +28,7 @@ =20 [Sources] DevicePathUtilities.c - DevicePathUtilitiesStandaloneMm.c + DevicePathUtilitiesBase.c DevicePathToText.c DevicePathFromText.c UefiDevicePathLib.c diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index 3d8874e647..9daee93523 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/UefiDevicePathLibBase.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 (#90984): https://edk2.groups.io/g/devel/message/90984 Mute This Topic: https://groups.io/mt/92110121/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-