TpmMeasurementLib has included DxeTpmMeasurementLib and PeiTpmMeasurementLib. So need to change TpmMeasurementLibNull to BASE library to avoid build error in some platform.
change TpmMeasurementLibNull to BASE library
https://edk2.groups.io/g/devel/message/64728
More precisely, the goal is to allow SEC and PEIM to consume TpmMeasurementLibNull. The platform that needs this change is OpenBoardPkg in the edk2-platforms tree: https://edk2.groups.io/g/devel/message/64736 http://mid.mail-archive.com/SN6PR11MB27977EB7627981921CF1A9EAB2520@SN6PR11MB2797.namprd11.prod.outlook.com v2 patch from Qi Zhang: * [edk2-devel] [PATCH v2] MdeModulePkg/Library: add PEIM and SEC module type to TpmMeasurementLibNull https://edk2.groups.io/g/devel/message/64867 http://mid.mail-archive.com/20200901013557.9249-1-qi1.zhang@intel.com v3 patch from Qi Zhang: * [edk2-devel] [PATCH v3] MdeModulePkg/Library: add PEIM and SEC module type to TpmMeasurementLibNull http://mid.mail-archive.com/20200901072622.9391-1-qi1.zhang@intel.com https://edk2.groups.io/g/devel/message/64873
The change qualifies as a bugfix because Null instances (of any library classes) should be as widely usable as possible, out of the box (regardless of known or expected use cases).
(In reply to Laszlo Ersek from comment #3) > v3 patch from Qi Zhang: > > * [edk2-devel] [PATCH v3] > MdeModulePkg/Library: add PEIM and SEC module type to TpmMeasurementLibNull > > http://mid.mail-archive.com/20200901072622.9391-1-qi1.zhang@intel.com > https://edk2.groups.io/g/devel/message/64873 Merged as commit e8453aa373e9, via <https://github.com/tianocore/edk2/pull/912>.