From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.243]) by mx.groups.io with SMTP id smtpd.web11.37615.1598596266505566033 for ; Thu, 27 Aug 2020 23:31:08 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.243, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 28 Aug 2020 14:31:00 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , "'Zhang, Qi1'" Cc: "'Wang, Jian J'" , "'Wu, Hao A'" References: <20200828061506.8068-1-qi1.zhang@intel.com> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIXSBNZGVNb2R1bGVQa2cvTGlicmFyeTogY2hhbmdlIFRwbU1lYXN1cmVtZW50TGliTnVsbCB0byBCQVNFIGxpYnJhcnku?= Date: Fri, 28 Aug 2020 14:31:03 +0800 Message-ID: <000401d67d04$cdbb8c90$6932a5b0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLpLW0w849lJkYbtGP1qW9t+hfL0wKcrHT4pxLI/bA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Qi: This is a bug fix. Do you request to catch it into this stable tag 20200= 8? Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: bounce+27952+64729+4905953+8761045@groups.io > =B4=FA=B1=ED Yao, Jiewen > =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA8=D4=C228=C8=D5 14:17 > =CA=D5=BC=FE=C8=CB: Zhang, Qi1 ; devel@edk2.groups.= io > =B3=AD=CB=CD: Wang, Jian J ; Wu, Hao A > > =D6=F7=CC=E2: Re: [edk2-devel] [PATCH] MdeModulePkg/Library: change > TpmMeasurementLibNull to BASE library. >=20 > Reviewed-by: Jiewen Yao >=20 > > -----Original Message----- > > From: Zhang, Qi1 > > Sent: Friday, August 28, 2020 2:15 PM > > To: devel@edk2.groups.io > > Cc: Zhang, Qi1 ; Wang, Jian J > ; > > Wu, Hao A ; Yao, Jiewen > > Subject: [PATCH] MdeModulePkg/Library: change TpmMeasurementLibNull > to > > BASE library. > > > > 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 > > --- > > .../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/TpmMeasurementLibNu > ll.c > > index b9c5b68de8..ee3be62fc6 100644 > > --- > > > a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu > ll.c > > +++ > > > b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu > ll.c > > @@ -1,11 +1,13 @@ > > /** @file > > > > This library is used by other modules to measure data to TPM. > > > > > > > > -Copyright (c) 2015, Intel Corporation. All rights reserved.
> > > > +Copyright (c) 2015-2020, Intel Corporation. All rights reserved.
> > > > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > > > **/ > > > > > > > > +#include > > > > + > > > > /** > > > > Tpm measure and log data, and extend the measurement result into a > specific > > PCR. > > > > > > > > diff --git > > > a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu > ll.in > > f > > > b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu > ll.in > > f > > index 61abcfa2ec..1db2c0d6a7 100644 > > --- > > > a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu > ll.in > > f > > +++ > > > b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNu > ll.in > > f > > @@ -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_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION > UEFI_DRIVER > > > > + LIBRARY_CLASS =3D TpmMeasurementLib > > > > MODULE_UNI_FILE =3D TpmMeasurementLibNull.uni > > > > > > > > # > > > > -- > > 2.26.2.windows.1 >=20 >=20 >=20