efi_loader: Introduce eventlog support for TCG2_PROTOCOL
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 30 Nov 2020 09:47:40 +0000 (11:47 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 3 Dec 2020 20:22:40 +0000 (21:22 +0100)
commitc8d0fd582576ff7cc67d0053282430476201fd33
treee23f1673ca05d9909846924d3020f31adfeb6ded
parent8e0b0871b82db0511440208b101ecf488858e915
efi_loader: Introduce eventlog support for TCG2_PROTOCOL

In the previous patches we only introduced a minimal subset of the
EFI_TCG2_PROTOCOL protocol implementing GetCapability().
So let's continue adding features to it, introducing the
GetEventLog() and HashLogExtendEvent() functions.

In order to do that we first need to construct the eventlog in memory,
specifically in EFI_BOOT_SERVICES_DATA memory and a configuration table
from EFI_ACPI_MEMORY_NVS.
U-Boot won't currently add any events to the log or measure any
components, but will expose the necessary EFI APIs for applications
to do so.

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