From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilias Apalodimas Date: Tue, 11 Jun 2019 13:20:25 +0300 Subject: [U-Boot] [PATCH v3 6/7] cmd: efidebug: make some boot variables non-volatile In-Reply-To: <20190604065211.15907-7-takahiro.akashi@linaro.org> References: <20190604065211.15907-1-takahiro.akashi@linaro.org> <20190604065211.15907-7-takahiro.akashi@linaro.org> Message-ID: <20190611102025.GA945@apalos> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 04, 2019 at 03:52:10PM +0900, AKASHI Takahiro wrote: > Boot####, BootOrder and BootNext should be non-volatile. > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Heinrich Schuchardt > --- > cmd/efidebug.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/cmd/efidebug.c b/cmd/efidebug.c > index c4ac9dd634e2..e65722625455 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)); Acked-by: Ilias Apalodimas