From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FF8CECAAD2 for ; Fri, 26 Aug 2022 06:42:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D515D848BF; Fri, 26 Aug 2022 08:42:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="kXrr8/Te"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 66B96848C6; Fri, 26 Aug 2022 08:41:46 +0200 (CEST) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1AF5A848C2 for ; Fri, 26 Aug 2022 08:41:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pl1-x632.google.com with SMTP id y4so820468plb.2 for ; Thu, 25 Aug 2022 23:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc; bh=7PKvfB7GwQWJMdYas4/PaaKW5V+YorpKDO3THz75vTk=; b=kXrr8/TedfvvSYR9fAF4Wo+zmFpsFHZ6Atp/Uboick/1gMLrTUZ86sJiDGZ9+n1Gm2 Ixzta+0t7hzDWS5m5uT1DLt5TmUCGPZMIFsJiX8ehiCEJD9CfjG91stRu+/jSSf6sF4X S0FRIYW0MoS8+E5LX+K9pLgFZMPPfjIsAf9nFYloqmxoixe+aPO4Xt+NX150i93nOR02 fs1q4Y5q5AT2oksaUK+jiEbLrOhdRk1tuj87hf1JIqdZveut6SIO8E2Y+4te8VzxrqfQ PUA2hP3iexhh9Xu5kcmSTsFhhBm7653W1PUOBXbNC2tVFQbJFf7lfO/UCf3vE1tlxfmc 7V0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc; bh=7PKvfB7GwQWJMdYas4/PaaKW5V+YorpKDO3THz75vTk=; b=E4CBAnPnS+MJbZoNeI2kqZgHd4HC3bcg0DiFdKGEdQ4zFWw3J8QWfeVzjtof6kh3VK YE9U3wFEo9iV+sGWb5e3cVYGvw8y3T8nLbL43crpYDAMqE7JtOSRDyLCbxwcaqMCmXz2 1zNrIgqmBNYNHaOIajDYiMpHurh7XL6sqKMVkClIqxILm8CTzrjgVCT9xQBEkI9l9JJc qFycV4IbW7bk3RRSPMlk9wDK17LfR/1gdxZPahQvz5YSJTW5veEwFDKCsv9A8rhYxFpL vUyekOe9J9Qz4kPmrSq5s9SIY/0YEmocGiVVv0BEhYSbdbkAB0EXCnAJ2RTlapnpBy9O Tzfw== X-Gm-Message-State: ACgBeo2DVX+L2c/pQVXD7HaJQwXOtNqrdkEWYtab0jnreLp244GFPVQF Zssn+K9sYjU5DPwE+dHaecLi0PkLqBGTRQ== X-Google-Smtp-Source: AA6agR4sDnWtKPLP/GmU4+fdnNBuyMnLq7Ra6gtJ/gfv5bsR4dq39jUw0vI7QYjrlqosjWrbIRH0+w== X-Received: by 2002:a17:90a:4291:b0:1f2:2a19:fc95 with SMTP id p17-20020a17090a429100b001f22a19fc95mr2866288pjg.29.1661496099221; Thu, 25 Aug 2022 23:41:39 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id f8-20020a170902ce8800b0016d62ba5665sm694641plg.254.2022.08.25.23.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 23:41:38 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Mark Kettenis , Masahisa Kojima Subject: [PATCH v14 06/10] eficonfig: scan media device in eficonfig startup Date: Fri, 26 Aug 2022 15:42:19 +0900 Message-Id: <20220826064223.23288-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220826064223.23288-1-masahisa.kojima@linaro.org> References: <20220826064223.23288-1-masahisa.kojima@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean In eficonfig startup, scan media devices and update the UEFI boot option. Signed-off-by: Masahisa Kojima --- 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