Message ID | 20220619045607.1669-5-masahisa.kojima@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:7814:0:0:0:0 with SMTP id b20csp747712mav; Sat, 18 Jun 2022 21:56:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sa/lNjCrLUUWAMSzEd5li67+nqWD6ckpvd68yvTy6QyrQTQucPObzOPk+6vL3Rz0/NfTlF X-Received: by 2002:a17:907:8c1a:b0:715:73d2:df36 with SMTP id ta26-20020a1709078c1a00b0071573d2df36mr16089707ejc.256.1655614566339; Sat, 18 Jun 2022 21:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655614566; cv=none; d=google.com; s=arc-20160816; b=p9GqVnY0exFjZsJNL68MK2PcyaMKZdZyA69cU5YeodClnJvPH5hl/LzmwHW2vPawVd 6Cienr30n2zERXwx1zbXFdak7fzVB23E9z15qeN31H/7vBis89f/ef0kDpSb3ou/mMWO rl58j9CiHRddbv7Ud7DZLBCNp/Q6fEprBGWRcTRC3+M4yj24wXctX0Pta6YuVu931qti tENRt1HoxnJGLJDF+8zDfhO6hjJR4w1fqTsSCxoDCZc0IoddMbzkxxEh7QZzu2y+lqAB MtPv3R1GpqLX2nmkEt+GwbcoKCe83midYKR0Mef2/tbbI3JnIdt+ElGwNF5Johkly/lR Bl0g== 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=xGDO0Ssq9nrgzeMOiIso7MdOflludZaZXVG91BZi/aM=; b=Marebx2MFxJempWdNyKGjZk6cx3Cp1SVFVyx9oXqfgd12lB0evMtese5qLewr++2TF H614mfxtbaJRPF+UerP8yaQzieDTtjFJePy1tqOfzT7/r0OPgzB2c5Q5/82rqbUEQyz8 NG+IHo39SQ2c3qJav9HZw6+M/Asq4QNLZ2lKyF9VMElgNoTR8yBi22bcOe55JhgfCn63 I83JQgavpDAjn2WmmIsAFasANq+kQsBsqJX2OeNNVQYMPBkk9E6lDH3saPk8A4F9XMIC xiiyYxFaUTRBcXO2j0SLpc8+au6lYUYCUF2t0T9Jhx9MH3rU//rrMCOjphkCcOBks991 B0iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sScbIOcT; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id mp35-20020a1709071b2300b007174e91f206si12131561ejc.217.2022.06.18.21.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 21:56:06 -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=sScbIOcT; 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 A4A4384428; Sun, 19 Jun 2022 06:55: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="sScbIOcT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34F73843EA; Sun, 19 Jun 2022 06:55: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-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (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 CF38E843F0 for <u-boot@lists.denx.de>; Sun, 19 Jun 2022 06:55:31 +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-pf1-x433.google.com with SMTP id p14so1818742pfh.6 for <u-boot@lists.denx.de>; Sat, 18 Jun 2022 21:55:31 -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=xGDO0Ssq9nrgzeMOiIso7MdOflludZaZXVG91BZi/aM=; b=sScbIOcTQB7oQfHm7SsOYA/lP+Sp6cJqJZAoGsUl7WuEcX9bnU/XNqYSsLzVqeKxWs b74kdGB5uDICmzZzgiwNKkBH2hw2N2l/sEEGAg5xTU25Qw9u2VRnrYQHdRIdgzAUHNgp aVd4ImZhuMsRfoJ8uSzEuxFF5YvqWLy7+Eu5RZIhazrHlbDFV6ynFXjBKiZB3UKQkpLS dS64byzPrrQkEi+3zwJ/9X/Y3pXL+hO+eMEVyAAe8HVaTSdfpla6svOTS0bvMGfzwPje R2rc/ny9+qadUORR3tQtV7XZXsOsOfYeuo7J+FJFIHbM0uBPYYRP4fKoKFFX5ftlcNMT oh8Q== 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=xGDO0Ssq9nrgzeMOiIso7MdOflludZaZXVG91BZi/aM=; b=pyOu2kAW2AIZ0Je3Ml4iXd3vbzX1jR5znws8gtOukxDTkxdvkDJcDeQtT8dRlO/oGP UDBYn/Z6+NCrbd/wXXqtQ6uQu84du/9GRbVypLrK85iF10u+H05HwMWfgLXX9Wgp0tBx vQJR//jptmGfZhTs1WJLOltIEhIFYYY4YIG9d6R5WGK359uqsFtrS7pymI3u19sFEweq qgUyUvphCuhohlQdW7VmQfk9GI2TXgOWPt81ae4C0ZQ3K6X/CKFZ5lGiV60aFtNPf0oN TZ9iR8F3Fl4QyT/6L5GvUsNuIx1wRPR9/TSJ2Mjv60u8ho/ntW1iUWF6CDP0MGOCSpvy 5F9w== X-Gm-Message-State: AJIora9DT8S+jhHrw8iLgGyMSKWWeuUedFkmSyxvlSk30xlQoT3iCP1L Gje8qgOJIAsu1BlSSRpUcDB5wKezLb/ltA== X-Received: by 2002:a63:2a0c:0:b0:3fc:9b04:541d with SMTP id q12-20020a632a0c000000b003fc9b04541dmr16241110pgq.546.1655614529967; Sat, 18 Jun 2022 21:55:29 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id 9-20020aa79149000000b00518424f8922sm6381848pfi.77.2022.06.18.21.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 21:55:29 -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 v8 4/9] menu: add KEY_PLUS and KEY_MINUS handling Date: Sun, 19 Jun 2022 13:56:02 +0900 Message-Id: <20220619045607.1669-5-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220619045607.1669-1-masahisa.kojima@linaro.org> References: <20220619045607.1669-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
|
On 6/19/22 06:56, Masahisa Kojima wrote: > 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> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
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> --- No change in v8 Newly created in v7 common/menu.c | 6 ++++++ include/menu.h | 2 ++ 2 files changed, 8 insertions(+)