Currently, we have TCG/TCG2 protocol and DxeTpmMeasurementLib to let DXE module extend the TCG event. There is more and more use case in PEI phase that a PEIM need extend TCG event, such as BootGuard, FSP, Microcode measurement. Currently, we dont have API to do that so that each module need create TCG/TCG2 event log, which is a burden. This bugzilla requests to add PeiTpmMeasurementLib instance. The implementation includes: 1) A EDKII_TCG_PPI which abstracts the HashLogExtendEvent service. 2) A PeiTpmMeasurementLib instance, so that a PEIM can call this API to add TCG event. 3) Add more API in TpmMeasurementLib, such as MeasureFirmwareBlob, MeasureHandoffTable for TPM PFP rev 105 support - add description for the FirmwareBlob and HandoffTable.
Sample implementation is at https://github.com/jyao1/edk2/tree/FspManifest
Reasonable request
https://edk2.groups.io/g/devel/message/62486
v2: https://edk2.groups.io/g/devel/message/62693
v4: https://edk2.groups.io/g/devel/message/62759
Move this requirement to https://bugzilla.tianocore.org/show_bug.cgi?id=2376 3) Add more API in TpmMeasurementLib, such as MeasureFirmwareBlob, MeasureHandoffTable for TPM PFP rev 105 support - add description for the FirmwareBlob and HandoffTable.
check in b630feee025564f794599f1f514aa4ac7f0a0c63..b87f31f034340c73ca072b65386f58c8ca1bc87b
This belongs to new feature.