[PATCH v16 06/10] eficonfig: scan media device in eficonfig startup

Masahisa Kojima masahisa.kojima at linaro.org
Mon Sep 5 14:47:58 CEST 2022


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

Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>
---
No update since v14

Newly created in v14

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

diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index edb42d2742..285d2a11ec 100644
--- a/cmd/eficonfig.c
+++ b/cmd/eficonfig.c
@@ -2085,6 +2085,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



More information about the U-Boot mailing list