efi_loader: Add an S-CRTM even for firmware version
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 24 Mar 2021 14:50:46 +0000 (16:50 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 25 Mar 2021 19:45:44 +0000 (20:45 +0100)
commitf69a2016b6330b70915c371491af33f5fd58c849
treed4ac8422388d708ea89f12d973136dba846f9cf8
parentd8cf113fe5860d4d262dfd2211524cda5bff19b2
efi_loader: Add an S-CRTM even for firmware version

TCG PC Client Platform Firmware Profile Spec mandates that an S-CRTM
event for the version identifier using the event type EV_S_CRTM_VERSION
must be measured.

So since we are trying to add more conformance into U-Boot, let's add
the event using U_BOOT_VERSION_STRING, extend PCR[0] accordingly and log
it in the EventLog

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_tcg2.c