From patchwork Mon Jun 13 09:38:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 581419 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp1798722max; Mon, 13 Jun 2022 02:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLWZx0J5uMwr51VuSuy0hmZvcKHP6COqVfCeea7QxI/6NFHuvHAlCjNXdoIn+2yOcHbcHm X-Received: by 2002:a05:6602:2d49:b0:645:dcf0:3151 with SMTP id d9-20020a0566022d4900b00645dcf03151mr27322794iow.61.1655113224570; Mon, 13 Jun 2022 02:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655113224; cv=none; d=google.com; s=arc-20160816; b=onRvwaCHq9oJdKVNlmStyRoQa/nYfmjwA++SjEg+nECjpfaGIPusf5qetwy3DGpHIe brShNpQTgyiVZpS8m3NuIREr7lqnkISWSZGhLw1HBXRYpV5GzmS2IPEbLpdD2yZRfzPo p8i5/O7Cyf58E2P/JXJy+69cENsXSNOm2bmg48QQxNkNXPphPcD+LoQDdYZayduquIQg ZyrEzHrDbirq4LS6066iIbIIgbjIvMl65SdvgV1pkX3e+Rd5vEkiVi9c+depN5/30j4g ucSN5xE/G2mDHc0aR8Hz2VWEm2XsSYZUNiS6DerJer+QeJ3tQCpJcM4fm4WhmA+HAK0v bmmw== 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=lUl7+80BIIqbkhzwp48a89+25+AUrwntSybviCws/jA=; b=kxB+Ve14LKsxlENq3WCaNZ2VZv0mjFTBi2Hn6zpFmfVqV5KE5C/GYHnyzaS9xRlU1T KIl6+05ukZ/gMpn0hhag0t7bNaUf00usmFP4/O/0tPXY25ZACdWJeTz2w7tlnr1MDQQ3 Jqn2XdHCt0k9fm+S4XBpxEP02AHVfcaqleZEMqOzxSVjnZca+i7WdGGyDA2GOP7bKkfE k3B3tgJnZgIWKdT7Nuo4IspBogIQJIOa1v96jNem+rer9J2aPxtvCwI4IFtqaos5MXs5 ZiH0TsG3Hz4W9ErFH1TZVPV/W5hMIobnRVCicEbCykLGzdBzRfPuC4mpgKwOLCAzIcsu 5f2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pJ2YGHQz; 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 u20-20020a05663825d400b003320950b662si10374015jat.103.2022.06.13.02.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:40:24 -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=pJ2YGHQz; 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 8EAB484462; Mon, 13 Jun 2022 11:38:53 +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="pJ2YGHQz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5052884459; Mon, 13 Jun 2022 11:38:50 +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-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (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 B76E28445D for ; Mon, 13 Jun 2022 11:38:45 +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-x102c.google.com with SMTP id q12-20020a17090a304c00b001e2d4fb0eb4so8289835pjl.4 for ; Mon, 13 Jun 2022 02:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lUl7+80BIIqbkhzwp48a89+25+AUrwntSybviCws/jA=; b=pJ2YGHQzb+5s7LDaUX6R46+t/NtrlJySfbfwZnZgeKW2uVgevKnERUigWdVmF0HBSx 1NbDvqmuGk2gpOmnt1jCobbl+Zw3rybQLNB2DjbvpqtFB/LAZEelFgHHHsglurtEE3ar xG5idNXGG5E6a/loU2+RDFDRM3B5wcerJwxKtVXjJjXVxWewPR9y+CJ2DrXzvV7Q5F9i ztE38j3w1m2TxoVVVbsTDG+ZFeX1TSM2f96lcZJMYsgzyp7+a4x1ZYGiz6MzP/IWfORu FZ1hjfalL0lY+oTsfGJhAD1AGCnh+SzEVYzBgJLyP1cBaqeQas01+M8YZLLIIjT5AYCl VPFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lUl7+80BIIqbkhzwp48a89+25+AUrwntSybviCws/jA=; b=Cn2yg030bj0Bfi3gPy1HIpEEFG1eFmVsUT8wsaicAnPrKwRRfDG2CiaE/EhuvN5Py+ 9gmooD5M/BsNKywQbPsgalFckjLDfHXFco5PLDn7YIfIedotNje2DCPc/0odi37KjE7+ oihm3cL9hGPQL1XuV9GzGm05vFnReWMvnac5pwmCjX9unjNzxsahyY5kr4ao7SZjfSRk kIQDCcgueU+omXc72SXhfw28sE+eSAKZWicDZtDGnDXvGJ9/hHxAYOky2JLb58ZItzXC R54vTH8ZDmOZzpOXiUzj3ehQ2amQ0JN4AON/8pzFQhhXlHSW8+sfueULMd99F7/ligDB UMvw== X-Gm-Message-State: AOAM533MzxIwQKyIEGirlcMuINWML8q+WqHtczhxjElIQKW6qkDyOPw6 J3AYju1ZfQQpAjdD+lE0Uk96ov8jZgU9ew== X-Received: by 2002:a17:90a:f2cb:b0:1e8:8ac2:bcdd with SMTP id gt11-20020a17090af2cb00b001e88ac2bcddmr14570732pjb.219.1655113123648; Mon, 13 Jun 2022 02:38:43 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id q6-20020a170902a3c600b00163f7935772sm4629227plb.46.2022.06.13.02.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:38:43 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Francois Ozog , Mark Kettenis , Masahisa Kojima , Bin Meng , =?utf-8?q?Marek_Beh=C3=BAn?= , Sean Anderson Subject: [PATCH v7 9/9] doc:efimenu: add documentation for efimenu command Date: Mon, 13 Jun 2022 18:38:53 +0900 Message-Id: <20220613093853.23865-10-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613093853.23865-1-masahisa.kojima@linaro.org> References: <20220613093853.23865-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.5 at phobos.denx.de X-Virus-Status: Clean Add documentation for efimenu command. Signed-off-by: Masahisa Kojima --- Newly created in v7 doc/usage/cmd/efimenu.rst | 50 +++++++++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + 2 files changed, 51 insertions(+) create mode 100644 doc/usage/cmd/efimenu.rst diff --git a/doc/usage/cmd/efimenu.rst b/doc/usage/cmd/efimenu.rst new file mode 100644 index 0000000000..2bf4f9266e --- /dev/null +++ b/doc/usage/cmd/efimenu.rst @@ -0,0 +1,50 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. (C) Copyright 2022, Masahisa Kojima + +efimenu command +================ + +Synopsis +-------- +:: + + efimenu + +Description +----------- + +The "efimenu" command uses U-Boot menu interface and privides +a menu-driven UEFI variable maintenance feature. +The "efimenu" has the following menu entries. + +Add Boot Option + Add new UEFI Boot Option. + User can edit description, file path, and optional_data. + +Edit Boot Option + Edit the existing UEFI Boot Option + User can edit description, file path, and optional_data. + +Change Boot Order + Change the order of UEFI BootOrder variable. + +Delete Boot Option + Delete the UEFI Boot Option + +Configuration +------------- + +The "efimenu" command is enabled by:: + + CONFIG_CMD_EFIMENU=y + +If CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE is enabled, user can not enter +U-Boot console. In this case, bootmenu can be used to invoke "efimenu":: + + CONFIG_USE_PREBOOT=y + CONFIG_PREBOOT="setenv bootmenu_0 UEFI Maintenance Menu=efimenu" + +See also +-------- +* :doc:`bootmenu` provides a simple mechanism for creating menus with different boot items + diff --git a/doc/usage/index.rst b/doc/usage/index.rst index c03f4aef9e..053631a746 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -33,6 +33,7 @@ Shell commands cmd/cbsysinfo cmd/conitrace cmd/echo + cmd/efimenu cmd/env cmd/event cmd/exception