From patchwork Mon Sep 12 08:33:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 604984 Delivered-To: patch@linaro.org Received: by 2002:a05:6504:2213:b0:1da:4c02:b5e7 with SMTP id z19csp2443250ltw; Mon, 12 Sep 2022 01:33:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7oYW/XX5Z5SVyF/KDKRDWveYkDOTw6JtbhmC/vr0gt8OP45w9XENQDC5cpAgHNJnKQD5Um X-Received: by 2002:a17:907:2d92:b0:731:3310:418d with SMTP id gt18-20020a1709072d9200b007313310418dmr17810294ejc.379.1662971591218; Mon, 12 Sep 2022 01:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662971591; cv=none; d=google.com; s=arc-20160816; b=IPBZnpBmt3ATKK5lsxkleUOJAseAODaNW6vPHVsDlLkNex5P66GP/wNl3dRXSKtZLZ iMeIAQR9TqmTa4obFSCnS0M5MIv2k7Lb3q5DBV+wyMPV7YzZjEwIkUbpr2pdW01qINff JR9KHYxka4DbwYSGZQE2/sOelBBlrTuhbIcCQE+R2TzAfgSz9XQg5BqBtj8dhpF9nCyg zYeI2DD8jqhIA6aOOFGmwtAswsVHnmPFIyB4j+CABt3w6xdhqiZXJc3TPHlUqysdsgO/ RIKwCEzQB3VKbSW7ia3s3evhpydm1eLALODQAypiEI7s76N8kDLVP4BxfnZHGXBOuxDd Ycxw== 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=c5sbdb7iOGQYdNA4RVqlEn6Kkm5gLuSKZ2ofShyfrIk=; b=El+98zckIM0qWbRHnjHugwq+bKqoKNCezqcXfAoto2aCtEgx6WuqrehDedHCTvVRfs H4ZspWTrFNFKq6GmqjifWXkqOeTHT+gYCVep1hQWG/+TPtrr2I42GEvJcf+NVGUw9byG Xxb8pT9zdlcRCfDKcxDmZ0QJ0S5GYJp/Eb0LpeeP793OE5CM6Rpezdfk6dvAYKlfoqyJ 9mQ7tsGI4xvjFoFNu4kQV6vBU5BGH1fFeZSaTReMO1BjmcWw971IkZbuhNyTUoc2kmnm yCrDhnozORO2o9oD1BJk3HZUrWiKWJi3snNnT8SbqCfxMOLjvEw8nL7qMiAhwxZ8uaYN nJLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KQfJ7/Gu"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id t1-20020a50ab41000000b004480baa3a40si3406599edc.189.2022.09.12.01.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KQfJ7/Gu"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 0B88B84BAF; Mon, 12 Sep 2022 10:32:38 +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="KQfJ7/Gu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 536F984B8F; Mon, 12 Sep 2022 10:32:21 +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-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 79A3F84A4D for ; Mon, 12 Sep 2022 10:32:07 +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-x629.google.com with SMTP id f24so7898449plr.1 for ; Mon, 12 Sep 2022 01:32:07 -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=c5sbdb7iOGQYdNA4RVqlEn6Kkm5gLuSKZ2ofShyfrIk=; b=KQfJ7/GuabcC0TAhYG0ficlCpYqzbr8oIAK70llXJp9s65OxE54DwaBFup87wMkwd9 uzG6DiXXtnxHU3uUaX7K5QeX48Z2LxRJZD9RH3UHrP3sZhkklF76NN07K3ybtjWSfthO bVI6ElRYIp7e4EYHpr3BRukUWf+kXQEo+WTV7XR3MG8vA7LXBfjFdcZGZaIEbz/eC4/y L+l7UjWOHdvHgRQZ7/donp9ztceEqKLJRCOelP46AwbY25I8orh0NLXBU2Y5P4tcDyuk gg0Bkepzm1ZF7g+eG1FuiSutOfd/5lvALHxvVKkmf0xZ08G+JkWsMYg4HuBcPlCNsbnP w1RA== 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=c5sbdb7iOGQYdNA4RVqlEn6Kkm5gLuSKZ2ofShyfrIk=; b=5ucYp+cIPsoI72chDciR7u6gmGxHgH5zz6DYB5vpzB9PQK0KxKpwMdQ7YfF/AAf/FC TEOwx8F9tmMj7/XPo1jKhu8rmKXN1P7EZQ+r3GaYsLQiE3Qm9yyOUNqbKfiUNs3iYdst 0Y04k+0p7UIzY05nZ7ZFyjwK7Q8KJTcM86DgjvDrEeqGZLuWcnSt5soGpHzCpY44bMgv T730lP2vucgGkVcohkiYXmTmkyrqk4TQpZ3pvRd79kE36GghOZFDf3OEKanRTgI3XJow 0+gKCWKH+tDFWalqjTBdJ5/BxOldFj9oQynDsK7oMiuer36fKBg6YA1BK+R1kreag8GS kVpA== X-Gm-Message-State: ACgBeo0gZhB0/ukaCFZ8e+EfqoulAbuyDB4fr8BR2SmR4bJzpZxXwOR+ x6eMU0svc1KLnDy4w3YPImJEtnwdBnJDBA== X-Received: by 2002:a17:902:e884:b0:178:2065:5c29 with SMTP id w4-20020a170902e88400b0017820655c29mr9239558plg.114.1662971525529; Mon, 12 Sep 2022 01:32:05 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id d15-20020a621d0f000000b00540ad46bc1dsm4698506pfd.157.2022.09.12.01.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:32:05 -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 v17 06/10] eficonfig: scan media device in eficonfig startup Date: Mon, 12 Sep 2022 17:33:55 +0900 Message-Id: <20220912083359.24510-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220912083359.24510-1-masahisa.kojima@linaro.org> References: <20220912083359.24510-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 bbd6c3229e..99c83d1adf 100644 --- a/cmd/eficonfig.c +++ b/cmd/eficonfig.c @@ -2129,6 +2129,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));