[PATCH v2] efi_loader: Enable run-time variable support for tee based variables

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jul 23 17:55:39 CEST 2020

On 23.07.20 14:49, Ilias Apalodimas wrote:
> We recently added functions for storing/restoring variables
> from a file to a memory backed buffer marked as __efi_runtime_data
> commit f1f990a8c958 ("efi_loader: memory buffer for variables")
> commit 5f7dcf079de8 ("efi_loader: UEFI variable persistence")
> Using the same idea we now can support GetVariable() and GetNextVariable()
> on the OP-TEE based variables as well.
> So let's re-arrange the code a bit and move the commmon code for
> accessing variables out of efi_variable.c. Create common functions for
> reading variables from memory that both implementations can use on
> run-time. Then just use those functions in the run-time variants of the
> OP-TEE based EFI variable implementation and initialize the memory
> buffer on ExitBootServices()
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

I will reformat comments in get_max_payload() exceeding 80 columns when

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

More information about the U-Boot mailing list