On 02/26/20 20:05, Ard Biesheuvel wrote: > Introduce a boolean PCD that tells us whether TPM support is enabled > in the build, and if it is, record the TPM base address in the existing > routine that traverses the device tree in the platform PEIM. > > If a TPM is found, install the gOvmfTpmDiscoveredPpiGuid signalling PPI > that will unlock the dispatch of OvmfPkg's Tcg2ConfigPei. If TPM2 > support is enabled in the build but no TPM2 device is found, install the > gPeiTpmInitializationDonePpiGuid PPI, which is normally installed by > Tcg2ConfigPei if no TPM2 is found, but in our case Tcg2ConfigPei will > never run so let's do it here instead. > > Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > --- > ArmVirtPkg/ArmVirtPkg.dec | 6 ++ > ArmVirtPkg/ArmVirtQemu.dsc | 5 + > ArmVirtPkg/ArmVirtQemuKernel.dsc | 6 ++ > ArmVirtPkg/ArmVirtXen.dsc | 6 ++ > ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c | 101 > ++++++++++++++++++-- > ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf | 19 +++- > 6 files changed, 129 insertions(+), 14 deletions(-)
Thanks for the update! Acked-by: Laszlo Ersek <ler...@redhat.com> Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#54984): https://edk2.groups.io/g/devel/message/54984 Mute This Topic: https://groups.io/mt/71571517/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-