diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-14 22:25:28 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-16 13:37:02 +0300 |
commit | 7dda16343d2577a52116148540ad7d17c6f19e55 (patch) | |
tree | 550e764fb23579aec71b523608fdd5f1d95507e4 /lib/efi_loader/efi_var_file.c | |
parent | 99bfab8b5832273d66d724f906be43fe5bd7c1ba (diff) | |
download | u-boot-7dda16343d2577a52116148540ad7d17c6f19e55.tar.xz |
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>
Diffstat (limited to 'lib/efi_loader/efi_var_file.c')
-rw-r--r-- | lib/efi_loader/efi_var_file.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c index 880c279aef..6f9d76f2a2 100644 --- a/lib/efi_loader/efi_var_file.c +++ b/lib/efi_loader/efi_var_file.c @@ -159,13 +159,7 @@ error: #endif } -/** - * efi_var_restore() - restore EFI variables from buffer - * - * @buf: buffer - * Return: status code - */ -static efi_status_t __maybe_unused efi_var_restore(struct efi_var_file *buf) +efi_status_t efi_var_restore(struct efi_var_file *buf) { struct efi_var_entry *var, *last_var; efi_status_t ret; |