diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-06-04 15:52:10 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-06-04 23:56:14 +0200 |
commit | f658c2e190c3a45a94317f27ab53f2f7d8067d36 (patch) | |
tree | ccc13008409654fa339e142ce264ecfaa8ae10b5 | |
parent | 366161cf976c41f2cfabbb896c8f9a94c31886ce (diff) | |
download | u-boot-f658c2e190c3a45a94317f27ab53f2f7d8067d36.zip u-boot-f658c2e190c3a45a94317f27ab53f2f7d8067d36.tar.gz u-boot-f658c2e190c3a45a94317f27ab53f2f7d8067d36.tar.bz2 |
cmd: efidebug: make some boot variables non-volatile
Boot####, BootOrder and BootNext should be non-volatile.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | cmd/efidebug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c index c4ac9dd..e657226 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -558,6 +558,7 @@ static int do_efi_boot_add(cmd_tbl_t *cmdtp, int flag, } ret = EFI_CALL(RT->set_variable(var_name16, &guid, + EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, size, data)); @@ -909,6 +910,7 @@ static int do_efi_boot_next(cmd_tbl_t *cmdtp, int flag, guid = efi_global_variable_guid; size = sizeof(u16); ret = EFI_CALL(RT->set_variable(L"BootNext", &guid, + EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, size, &bootnext)); @@ -964,6 +966,7 @@ static int do_efi_boot_order(cmd_tbl_t *cmdtp, int flag, guid = efi_global_variable_guid; ret = EFI_CALL(RT->set_variable(L"BootOrder", &guid, + EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, size, bootorder)); |