diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-14 21:25:28 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-16 12:37:02 +0200 |
commit | 7dda16343d2577a52116148540ad7d17c6f19e55 (patch) | |
tree | 550e764fb23579aec71b523608fdd5f1d95507e4 /lib/efi_loader/efi_var_seed.S | |
parent | 99bfab8b5832273d66d724f906be43fe5bd7c1ba (diff) |
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_seed.S')
-rw-r--r-- | lib/efi_loader/efi_var_seed.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_var_seed.S b/lib/efi_loader/efi_var_seed.S new file mode 100644 index 00000000000..e0a40cf46c8 --- /dev/null +++ b/lib/efi_loader/efi_var_seed.S @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Predefined UEFI variables + * + * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de> + */ + +#include <config.h> + +.section .rodata.efi_seed.init,"a" +.balign 16 +.global __efi_var_file_begin +__efi_var_file_begin: +.incbin CONFIG_EFI_VAR_SEED_FILE +.global __efi_var_file_end +__efi_var_file_end: +.balign 16 |