]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit533fc821e33829f0c19c0e43f112330ca3d2b035
treed4ac8422388d708ea89f12d973136dba846f9cf8
parentc31409f3ae053fbf3c3d637af1b90f218d0a912a
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