summaryrefslogtreecommitdiff
path: root/include/efi_variable.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-14 22:25:28 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-16 13:37:02 +0300
commit7dda16343d2577a52116148540ad7d17c6f19e55 (patch)
tree550e764fb23579aec71b523608fdd5f1d95507e4 /include/efi_variable.h
parent99bfab8b5832273d66d724f906be43fe5bd7c1ba (diff)
downloadu-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 'include/efi_variable.h')
-rw-r--r--include/efi_variable.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 021a74f309..17f25ad7a4 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -139,6 +139,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
*
* File ubootefi.var is read from the EFI system partitions and the variables