From patchwork Fri Aug 26 06:42:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 600264 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp231235mae; Thu, 25 Aug 2022 23:42:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5UrG+JQ+2wX8c8LyDnpbxAHEvwytmZjK1UHV5cQyBX1rfcK3pGKYTCoFg6gh9ySKV8Q5Zz X-Received: by 2002:a05:6402:3590:b0:447:a871:c48a with SMTP id y16-20020a056402359000b00447a871c48amr5606184edc.356.1661496155412; Thu, 25 Aug 2022 23:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661496155; cv=none; d=google.com; s=arc-20160816; b=1G2tHZFtDFohgwLZxrSQ0voutMEUid/9BpDDtJBKA7cjkpNmjyg+HHo1pIVnGBEQKL 64JbR7kjdLgh/g9wEmQPVOa3QkELpOLxMjzmLoI6s/mpCqc+2b32JYmiLTbGcDi9yEAg bTvEKNs6L0dn27yIIvxrxrSIktqHxrS8BJkrXqaPbOsCn5vJ3LgnW7zSbdYX7wms6l57 IXl2WZEmGQ/bVkd3KB/S8/WnqV1ooTrJUDOnv1QtXvlkoXm9zfsBr574XFjTDdV8XiAD Yti58jGczpgdTiWya2GKmO8EvrxlBfKnQAUsfc/bTgNXRN8ZFgn1p/rYjrLrIBEJdePm nZKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7PKvfB7GwQWJMdYas4/PaaKW5V+YorpKDO3THz75vTk=; b=mvmJ9vhMXp3gme7K9H1c/3sCNCo/2jldjR3Gf2nHUAMhIUmzwiD5ULhOHkq9UPWz9q nc0gSyu9RFJbFGvtACWc4ol+hIT/29YnbRwP8Lttas0fBV/0dR7oLjgv0YQhWq53PHyx 5j3XzKymvPl9vPIT1bDpXU48z3+uEVzfNCPKGsM/ie/o6zhfp+rX2/ZRAsFrIIe3yFwW Rc6/nb3f8JgeuRw10JDfJ7Iw0LB6CzerpyTxFqqiZSUmPqjJvloKdHPEIUkpuKPVnRTW bqTDoJtprS4sIkxrqIKrAG/xMQVIjU3MDSIJAeDO70i4GwSuZRBm0GmoC5C/eSzOxQ6Y gDhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kXrr8/Te"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id i22-20020a170906a29600b0072b4791e326si700549ejz.181.2022.08.25.23.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 23:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kXrr8/Te"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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-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));