[U-Boot] [PATCH 4/4] efi_loader: bootmgr: make BootNext non-volatile

AKASHI Takahiro takahiro.akashi at linaro.org
Wed Nov 28 06:00:59 UTC 2018


See UEFI specification v2.7a, section 3.3 for details attributes.

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 lib/efi_loader/efi_bootmgr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index db391147fb2d..128d1e887cb4 100644
--- a/lib/efi_loader/efi_bootmgr.c
+++ b/lib/efi_loader/efi_bootmgr.c
@@ -210,7 +210,8 @@ void *efi_bootmgr_load(int boot_id,
 	if (!bootnext)
 		goto run_list;
 
-	attributes = EFI_VARIABLE_BOOTSERVICE_ACCESS |
+	attributes = EFI_VARIABLE_NON_VOLATILE |
+		     EFI_VARIABLE_BOOTSERVICE_ACCESS |
 		     EFI_VARIABLE_RUNTIME_ACCESS;
 	size = 0;
 	ret = rs->set_variable(L"BootNext",
-- 
2.19.1



More information about the U-Boot mailing list