Message ID | 20220613093853.23865-5-masahisa.kojima@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp1797941max; Mon, 13 Jun 2022 02:39:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHywaH0wjbNdjSyaBN5f2FFSCI2GGsBp8sn/jlTGCqsXxgYlFV3JeSwPcCvgSfehvPO6vS X-Received: by 2002:a92:c6d2:0:b0:2d7:9848:232f with SMTP id v18-20020a92c6d2000000b002d79848232fmr5306463ilm.93.1655113143432; Mon, 13 Jun 2022 02:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655113143; cv=none; d=google.com; s=arc-20160816; b=sSdQYJ5+sG1TjqUiOOzy0J9hEawaoGhRoy0vSStc/jfXPYxRpvOKsKxAZihLhu0bKd i0iD9jlMbAGbkQWzqWmBjM1FDqc/EKgjoHf2NWmv7VCOOSeIZJjkV6dUgQ1pneiEzFze 8wvYaOrBfVM6vKHhYB3iVDmPKpz3GSA6qTU1c8S7vMeE060YklbNT/adSZanf+i4cdl5 sMiWpjS620cnh7G1yPbr0bEGGgSb87J18cuyGdB/DDJJBUzU49g+Sas7V1ZV1W1dx9qG TDlxfQ18rgjOgk1AvnyuR575SBDWxq0wJLCIAGpuF8oNmRwNim9uknDvI98YH87jetyf pzfw== 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=lCT5fFxp+Oc7GgXT1+Rsu1/IAKOKVEKIidJZFtei3KE=; b=HQmz6urJQfPOE8XVz5hBbY04BJSuNQR0KaIALBQuuwGMOWjuoPGRkRGpSLZK7CZx/P opRLvylwVDqjlElQYpYyMDJeua50gM5BWx8Ue/KClQW38y5w9jYc8bAw1ORHT8BLJl0c mtXd3n9dbxxj/+n5icUKhJzPPsQ5LCAFz5S7XplfF2TJ1icZ0ZXGzeRbkkIyaZlNQpfY Euo/aVF5haB/8ua/7K9aGZaWJgE1D+x5FHz3VxD0fghrJHAWRQWTFQCXR+Z80ooSthLT klfDOs/rUDitIfxcuTwFbn2zf1xhuA3p9P0XdbJ3NxYEgfemSTAgrSXNYE/HJMfsWqAt aUqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hwstSP0u; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id u21-20020a022e55000000b003241174840csi6045557jae.111.2022.06.13.02.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:39:03 -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=hwstSP0u; 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 E023284433; Mon, 13 Jun 2022 11:38:36 +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="hwstSP0u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F68E84441; Mon, 13 Jun 2022 11:38:34 +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 89CBD8443F for <u-boot@lists.denx.de>; Mon, 13 Jun 2022 11:38: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=masahisa.kojima@linaro.org Received: by mail-pj1-x102a.google.com with SMTP id k5-20020a17090a404500b001e8875e6242so5384110pjg.5 for <u-boot@lists.denx.de>; Mon, 13 Jun 2022 02:38:29 -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=lCT5fFxp+Oc7GgXT1+Rsu1/IAKOKVEKIidJZFtei3KE=; b=hwstSP0u1Sp6hodXgSakH7sQ8FpWLdN5sQ5fP2KHxyFOvdVBGJY0b4NSfEyaJ2nWhj nBZpdpVL4GsflRNDdFW4ky7NdYIxdT9PvH83xQv99cTZEHctd+O+irWPjNA52WiT2ubP PsS8feiFk5Nnfbg4WTu3fGvj/BD0hOQpxmnRXKaa8Ivn0REN4dH/oMvmoQFQIqQ35SHS 6CPs3UYW/eO0/vh7pnO4nZYUDwxQ+UAbnh0GB2kDsZwfkJVA/5sj1y0F1Hpo72qe+N7R i5ArO2xaITvr3lplThqPFEgL1CzmqyoGySXf54nP6yvS1NmNZvwFynnjQhqP/IswN2Es iU7Q== 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=lCT5fFxp+Oc7GgXT1+Rsu1/IAKOKVEKIidJZFtei3KE=; b=Sc6rAdjln6H+6HolBbkWhNOc/MrkwHqhDpyrKTLP1DMFF1El8eZEDmmR1/HwkZnvMp bpv0f3uXzol9+QzkgIOsMvifFvrei1XshTzsIBS62epuOsBmeAY4FbJFWLA7nXTEpWGF w3UPJE1F7CJhNcEUFuGtSTO2X/1ier3YMRS3jFUBD8mCDjuh6YGD359ta7c749pMfB/D ocJE7a1ZfIMcMUn4EKYyOc1C01AAD+zIgDigF0QQ0agSH2xThx69BjNU7jN/GX+dR+Cb hu0Ra7BVHgFWD0tMWfHMEpg8ZHcfZFTnIaFOc4z6ixJ1XBOHK/k+26gK4LmxPs+6cnv+ BGTQ== X-Gm-Message-State: AOAM530MdX+G7uSkKVv/c0/lV/+e+NxND/S8BCQBMhMXgCBymluGjXGU o/ylf4K2jRFni/wvte3/jQBNrNAr/CfPiw== X-Received: by 2002:a17:903:11cc:b0:168:eae:da4a with SMTP id q12-20020a17090311cc00b001680eaeda4amr29520270plh.21.1655113107521; Mon, 13 Jun 2022 02:38:27 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:38:27 -0700 (PDT) From: Masahisa Kojima <masahisa.kojima@linaro.org> To: u-boot@lists.denx.de Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Simon Glass <sjg@chromium.org>, Takahiro Akashi <takahiro.akashi@linaro.org>, Francois Ozog <francois.ozog@linaro.org>, Mark Kettenis <mark.kettenis@xs4all.nl>, Masahisa Kojima <masahisa.kojima@linaro.org> Subject: [PATCH v7 4/9] menu: add KEY_PLUS and KEY_MINUS handling Date: Mon, 13 Jun 2022 18:38:48 +0900 Message-Id: <20220613093853.23865-5-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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
enable menu-driven UEFI variable maintenance
|
expand
|
diff --git a/common/menu.c b/common/menu.c index 3e876b55b3..3470f95a98 100644 --- a/common/menu.c +++ b/common/menu.c @@ -548,4 +548,10 @@ void bootmenu_loop(struct bootmenu_data *menu, /* ^C was pressed */ if (c == 0x3) *key = KEY_QUIT; + + if (c == '+') + *key = KEY_PLUS; + + if (c == '-') + *key = KEY_MINUS; } diff --git a/include/menu.h b/include/menu.h index e74616cae8..4c32e74ce9 100644 --- a/include/menu.h +++ b/include/menu.h @@ -48,6 +48,8 @@ enum bootmenu_key { KEY_DOWN, KEY_SELECT, KEY_QUIT, + KEY_PLUS, + KEY_MINUS, }; void bootmenu_autoboot_loop(struct bootmenu_data *menu,
This is preparation to support menu-driven UEFI BootOrder variable updated by KEY_PLUS and KEY_MINUS. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> --- Newly created in v7 common/menu.c | 6 ++++++ include/menu.h | 2 ++ 2 files changed, 8 insertions(+)