efi_loader: pre-seed UEFI variables

Include a file with the initial values for non-volatile UEFI variables
into the U-Boot binary. If this variable is set, changes to variable PK
will not be allowed.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2020-07-14 21:25:28 +02:00
parent 99bfab8b58
commit 7dda16343d
7 changed files with 73 additions and 10 deletions

View file

@ -138,6 +138,14 @@ struct efi_var_file {
*/
efi_status_t efi_var_to_file(void);
/**
* efi_var_restore() - restore EFI variables from buffer
*
* @buf: buffer
* Return: status code
*/
efi_status_t efi_var_restore(struct efi_var_file *buf);
/**
* efi_var_from_file() - read variables from file
*