From patchwork Fri Sep 2 14:23:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 602176 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp1509487mae; Fri, 2 Sep 2022 07:23:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6frNO3d1duyAKomfP+VJrr8BU+lOKCgJnAvAVVA6CjgmfaLhCoynHZjJrwCkxgTbDVVrLZ X-Received: by 2002:a17:907:3d90:b0:741:346a:6e46 with SMTP id he16-20020a1709073d9000b00741346a6e46mr22517972ejc.279.1662128601509; Fri, 02 Sep 2022 07:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662128601; cv=none; d=google.com; s=arc-20160816; b=SOnFGTv9HPUtpuCtT7xnZwmpiNY2wpHZdgNMJWbp9hZ7damRkOP53hMPPXbtzONPff FtYNafm+6aru6bc5U3aBaTRQwiXIdiCogvd2URq3Bqy/MroQlr3tg36tpV3/+dGApRAb QeakNCSrDLvj17zYp8Nw00ZQmWDxYR8C7N1KlEjvIR5l2WVU+KnwdxzbMX+HDmJMCdff NtYv0PtiGTstFoG615d0PbXRia0WF3YgOu2qwONbQ7rRwG4ykY3rwI9MbbKVF9x6b25Y 8WTTCQrqj9DovHF2XpgTVshXl9pe1GjEiZW45LvS+8mnjYkAL/DC6t/OE9ZF0R0k/2ni EDWg== 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=/L/lsK2mZ1+KnPPKMkXbxhSMUYgzIAsdDMak0LVlixo=; b=uzRMmyS3ozsLllKGyWgHQgM1a8yMVCAssM601j70PnMKH1F5MyNCESz8B6LFStQkO8 7dfMY1wsQ3HOQ4aUF0CdZqvtNrDLVgPHmvbksBN4F3wroobvUo9fBT3vOwpzD7ZpD9Hp TnhcJ06m0KWDv024Gn9S7L+mjdMNfQGi2fXv+1rI38BtJmviGmzlUu1iFlb3VIjg0/Tp 0HLiYFeQS2KX4rf5mpfBDsUG+OEqDzP2C/fIy9RF8bcoCBckgot5A3RLHzg9OujvCZdX v00k4/5LGg6OWjlxZxZi8mI3L+CoG42ldXetCU2KzphJCvC3VEWjBG4Nm19X0SA0qo1/ ooyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrDv7Q33; 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 t16-20020aa7d710000000b0043c94968998si323471edq.385.2022.09.02.07.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 07:23:21 -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=ZrDv7Q33; 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 9F40A84AF3; Fri, 2 Sep 2022 16:22:29 +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="ZrDv7Q33"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 403DD84AF0; Fri, 2 Sep 2022 16:22:27 +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-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 8C48584AF3 for ; Fri, 2 Sep 2022 16:22:23 +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-pj1-x102a.google.com with SMTP id z3-20020a17090abd8300b001fd803e34f1so5668964pjr.1 for ; Fri, 02 Sep 2022 07:22:23 -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:subject:date; bh=/L/lsK2mZ1+KnPPKMkXbxhSMUYgzIAsdDMak0LVlixo=; b=ZrDv7Q33MIUktwPD8LFAb/MNhWa5/8xirsyJOX/pGXLma3CO/YPA2ka8h/EiPnPnE1 67tdZGnVaLdR7pfa3hHIhPLCnfNPyrQp3WuG6wlDzrjdGvDXUs8aRpwaAF2fG49Z3F4R Rcjy+PR3SMsANB4bhPbQBkfQ6sBvduTuJVLLNAg43tfsu7y6GdygOqv9DZaA5UCSnzxx GwkraXrSaz0E7WAOsTH0n7A8xHGhbvNUXaye4jzKZ/HnWAVgvTjge/XUkugV2sk42Kq8 VsYnbYDN906QuQU/SazHvxll9rRYev8nv4SdqlIMkauYyx9NtsxyTXwYtjbBMYmkuEeR cdVQ== 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:subject:date; bh=/L/lsK2mZ1+KnPPKMkXbxhSMUYgzIAsdDMak0LVlixo=; b=mFdulP9sPI2jfobWBKf2pZuFTd0t9SF22G64PYAlVTVOWdPSYOHyNYLKwXgfXaUk2u +oNUtGC/1aQHNUOmVc9zd2lsKDOUGCFPanrIKiIet4LpmQ2vDGwrAMIp6sJEmVsI33U3 DebOc03xXnUsQ0Q/gxbCqolXmIZjCR5GQYeGWD0Z6YjPB5XHrZ/re7btlwLUJXvZb0If laxP2sJykiOW19ez3kpm2DPo2ODlG3QaeO+hXHAq2VFtzM/ETe7Rm8eMp+lshRJ9KNn/ MTDantUTi6ebjUnUbNcfrzaph7TYfXs5YDGtjCzyT6mrOWpNGWclEoalfLymZUqypbab HVRA== X-Gm-Message-State: ACgBeo3jkaLQ0OEzqimwk+4OUaB2k2fv+WO+uVk0d2wTeK+93wIcKC4n YVu4cKstDwa3ZfO+6UN/+UYD5JaAI2Xb+A== X-Received: by 2002:a17:90a:640c:b0:1f7:6ecf:33b6 with SMTP id g12-20020a17090a640c00b001f76ecf33b6mr5145010pjj.3.1662128541745; Fri, 02 Sep 2022 07:22:21 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id i8-20020a17090332c800b0017272667a56sm1678485plr.196.2022.09.02.07.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 07:22:21 -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 v15 06/10] eficonfig: scan media device in eficonfig startup Date: Fri, 2 Sep 2022 23:23:45 +0900 Message-Id: <20220902142349.16722-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220902142349.16722-1-masahisa.kojima@linaro.org> References: <20220902142349.16722-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 --- 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 21d9bd3e23..dda45a8364 100644 --- a/cmd/eficonfig.c +++ b/cmd/eficonfig.c @@ -2089,6 +2089,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));