u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Masahisa Kojima <masahisa.kojima@linaro.org>
To: u-boot@lists.denx.de
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Simon Glass <sjg@chromium.org>,
	Takahiro Akashi <takahiro.akashi@linaro.org>,
	Mark Kettenis <mark.kettenis@xs4all.nl>,
	Masahisa Kojima <masahisa.kojima@linaro.org>
Subject: [PATCH v14 06/10] eficonfig: scan media device in eficonfig startup
Date: Fri, 26 Aug 2022 15:42:19 +0900	[thread overview]
Message-ID: <20220826064223.23288-7-masahisa.kojima@linaro.org> (raw)
In-Reply-To: <20220826064223.23288-1-masahisa.kojima@linaro.org>

In eficonfig startup, scan media devices and update
the UEFI boot option.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
---
Newly created in v14

 cmd/eficonfig.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index 772b38d29a..946c4b1d08 100644
--- a/cmd/eficonfig.c
+++ b/cmd/eficonfig.c
@@ -2059,6 +2059,10 @@ static int do_eficonfig(struct cmd_tbl *cmdtp, int flag, int argc, char *const a
 	if (ret != EFI_SUCCESS)
 		return CMD_RET_FAILURE;
 
+	ret = eficonfig_generate_media_device_boot_option();
+	if (ret != EFI_SUCCESS && ret != EFI_NOT_FOUND)
+		return ret;
+
 	while (1) {
 		efi_menu = eficonfig_create_fixed_menu(maintenance_menu_items,
 						       ARRAY_SIZE(maintenance_menu_items));
-- 
2.17.1


  parent reply	other threads:[~2022-08-26  6:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  6:42 [PATCH v14 00/10] enable menu-driven UEFI variable maintenance Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 01/10] eficonfig: menu-driven addition of UEFI boot option Masahisa Kojima
2022-08-30 11:53   ` Ilias Apalodimas
2022-08-30 12:56     ` Ilias Apalodimas
2022-08-26  6:42 ` [PATCH v14 02/10] eficonfig: add "Edit Boot Option" menu entry Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 03/10] menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 04/10] eficonfig: add "Delete Boot Option" menu entry Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 05/10] bootmenu: add removable media entries Masahisa Kojima
2022-08-26  6:42 ` Masahisa Kojima [this message]
2022-08-26  6:42 ` [PATCH v14 07/10] eficonfig: add "Change Boot Order" menu entry Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 08/10] doc:bootmenu: add description for UEFI boot support Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 09/10] doc:eficonfig: add documentation for eficonfig command Masahisa Kojima
2022-08-26  6:42 ` [PATCH v14 10/10] test: unit test for eficonfig Masahisa Kojima

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220826064223.23288-7-masahisa.kojima@linaro.org \
    --to=masahisa.kojima@linaro.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=sjg@chromium.org \
    --cc=takahiro.akashi@linaro.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).