From nobody Sat May 4 12:47:57 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+64728+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+64728+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1598595314; cv=none; d=zohomail.com; s=zohoarc; b=QJ5Ac8Y+WEbXM5LjDgHodEFcg24fylEdrmNaeEgruWFm5E2lfxwcD64ih2HjAp9swU+rZrgSlzgMjNF7QYQmcZWAvxgvWyEwntA9qd0J8Nv/XACU9CqXAS3qF/ZH/+rZZV5Xmbx7yolbgCG1r23P32DbyXSViBpxFOHuS5A1mYg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598595314; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=aZV1ivJDiCcEILuZKFS8Arihtd/WmGeZffCYwOlxKIc=; b=WK8C7o2psS5z6R/cnZMcX/ttUQPkWCsUl1CxRBHCdbg8nb2KBkSvVA32a4cI8FhgT8AYyoPYeoP+8k4KovGWeVb9UkJax/ddRoYVaqJ7TVJZ1VqWM8OCqfiEUByNrvY2q9SFCZ7dgyQWhK8FaYx4+lxREd4PnU/q2D4WKQWnvio= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+64728+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 15985953148281022.6236451124278; Thu, 27 Aug 2020 23:15:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id clvwYY1788612xCEZo3gfoyo; Thu, 27 Aug 2020 23:15:14 -0700 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web12.37343.1598595313042752632 for ; Thu, 27 Aug 2020 23:15:13 -0700 IronPort-SDR: yY8F81CjW8gAXmf3fnIMGYtKR9HqD6LvfrNSmPKr+uQHTp7xDwdfIXp3+K9/r95tTLhxURE+Aa oy7/NlgR+C1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9726"; a="155874561" X-IronPort-AV: E=Sophos;i="5.76,362,1592895600"; d="scan'208";a="155874561" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2020 23:15:12 -0700 IronPort-SDR: 3CspTYH0iuXpK50sBSVDncI9vsmudCQDAKGaNvxR2rXUbotLINcSwkM7YHPHL/89H4qGuX7ZXw oetHG3qjai+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,362,1592895600"; d="scan'208";a="337411683" X-Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.158.153]) by FMSMGA003.fm.intel.com with ESMTP; 27 Aug 2020 23:15:10 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Qi Zhang , Jian J Wang , Hao A Wu , Jiewen Yao Subject: [edk2-devel] [PATCH] MdeModulePkg/Library: change TpmMeasurementLibNull to BASE library. Date: Fri, 28 Aug 2020 14:15:05 +0800 Message-Id: <20200828061506.8068-1-qi1.zhang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,qi1.zhang@intel.com X-Gm-Message-State: Jm0DKu8J2YeVqQ34b5Ghq2bux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1598595314; bh=dMVuXphAcwhIkWbL3rpe2GhpnNvhvAmHgq37Xh2ETFk=; h=Cc:Date:From:Reply-To:Subject:To; b=pRkyy1hezLaoPc0k3Fs4BdlfOuSuCDV8p/19+TvDLfF7GJg9uiC0IkC/4PMXTjBUj+R uICuUp6BbZ+fby0411qJ3KlG6TaHcSjpGR86h3bIxi84+684xNJy02imjIS/7Hl1+Du9q 0vweuwaYmfk/W6FSgdBTIVq9Wafud+44uKo= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2940 TpmMeasurementLib includes DxeTpmMeasurementLib and PeiTpmMeasurementLib. So need to change TpmMeasurementLibNull to BASE library to avoid build error in some platform. Signed-off-by: Qi Zhang Cc: Jian J Wang Cc: Hao A Wu Cc: Jiewen Yao Reviewed-by: Jian J Wang Reviewed-by: Jiewen Yao --- .../Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c | 4 +++- .../Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu= ll.c b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c index b9c5b68de8..ee3be62fc6 100644 --- a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c +++ b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c @@ -1,11 +1,13 @@ /** @file This library is used by other modules to measure data to TPM. =20 -Copyright (c) 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2015-2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ =20 +#include + /** Tpm measure and log data, and extend the measurement result into a speci= fic PCR. =20 diff --git a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu= ll.inf b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.i= nf index 61abcfa2ec..1db2c0d6a7 100644 --- a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf +++ b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf @@ -1,7 +1,7 @@ ## @file # Provides NULL TPM measurement function. # -# Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
+# Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # ## @@ -10,9 +10,9 @@ INF_VERSION =3D 0x00010005 BASE_NAME =3D TpmMeasurementLibNull FILE_GUID =3D 6DFD6E9F-9278-48D8-8F45-B6CFF2C2B69C - MODULE_TYPE =3D UEFI_DRIVER + MODULE_TYPE =3D BASE VERSION_STRING =3D 1.0 - LIBRARY_CLASS =3D TpmMeasurementLib|DXE_DRIVER DXE_RUNT= IME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER + LIBRARY_CLASS =3D TpmMeasurementLib MODULE_UNI_FILE =3D TpmMeasurementLibNull.uni =20 # --=20 2.26.2.windows.1 -=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 (#64728): https://edk2.groups.io/g/devel/message/64728 Mute This Topic: https://groups.io/mt/76468437/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-