Message ID | 20220817093614.32266-4-masahisa.kojima@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp3087076maz; Wed, 17 Aug 2022 02:36:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR4woBg8P8+PX5OvMl3tulH0t8imUkzrT2toaXoTDIqkYbgpRD17onwmtOUuiB1BgS0v8OxK X-Received: by 2002:a05:651c:154b:b0:25e:c73d:a786 with SMTP id y11-20020a05651c154b00b0025ec73da786mr7760427ljp.397.1660728966954; Wed, 17 Aug 2022 02:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660728966; cv=none; d=google.com; s=arc-20160816; b=tsHhV2tPuCPOxqYY6DzCPr2nsnkAx/kbd9zwoqnW1qp+RKemxaA2/8RlxHkbHpM8yg tn84Cq5taznJ/aC55rCayfG21BscuV0+rDlOJILxlFyD7iKGZoUDWuOsPTLFIDku2HAx t9yk9L7Ykwtc/3qXQRzgcXf2pfbk0P85Md/Q/JNyiTfWLI86i/GZzZeSNB9EvqKONSFY OVlySfOqCIlHmmXSHn/qo9jNq7YmbcdsIUPOA/mEjy3nJi4c7uBIZrBdiHWraMZrX3Wj gUM86A8AJ/zdQG2D5XRz37YCiRnltdOeURQ35xWOwOqgTXAzSduydxPSdnz5mk++gZFS 0r0g== 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=8P488z01V3hNEE6eibDTn61x0ojtNrrvDPnZFjjsedE=; b=NtU7pidnJeqJd7mzOB0w4KR52y+C4d+o+Tc5zgSwQkXef2Y/+zNDCHqNc1dvruv9gA N5nsbWU4hDdGunnRE5diHm/qFoASRZb2UsZroNEAb+YA2ZIhLQe1QqSIY+VffcsUyVnU DVgEgAb4aG+eIEL4z4mkRIoJ2gaZspI1O21y7Ql+w5554/9O039J5Qnbd2UsIZn+zRu8 gDzaOIgykCH/wJ1eyQXWBBpRBcT5taiPN0OxaoQhJOUmMBcwHBKmxl6M7M9Az57ZsEb6 2/l4cd+A62IRJyM2fjKFCUaAk79kIt5HRTbwPC8HdvRgN8owkYyHZEawGm9ACTSm0Nlp ER2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wC/JQOOw"; 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 m13-20020a2e910d000000b0025da259981dsi7628403ljg.451.2022.08.17.02.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 02:36: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="wC/JQOOw"; 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 88FC7849F9; Wed, 17 Aug 2022 11:35:54 +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="wC/JQOOw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 94F9384995; Wed, 17 Aug 2022 11:35:51 +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-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (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 C796784995 for <u-boot@lists.denx.de>; Wed, 17 Aug 2022 11:35:47 +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-x102f.google.com with SMTP id x63-20020a17090a6c4500b001fabbf8debfso414238pjj.4 for <u-boot@lists.denx.de>; Wed, 17 Aug 2022 02:35:47 -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; bh=8P488z01V3hNEE6eibDTn61x0ojtNrrvDPnZFjjsedE=; b=wC/JQOOwo6vhs59s/c4cEm7w6IB3pjm66mk50tfMr6x72DaOdDygbAiMF4W9DZ1p+O AZuXJNh/L8j5qkssNKfEg7b+CXbg1OpCSD+UqWALtY9TqRqn2Nh6vwFQug5ES+dMwlPq GA/46wSH400+Sm8RqZrSbB9rpy3cYPC9cV3uS8y1nkm/aNEozQaGmWf/nltnY7TZS5UH hF9+s1wjPn5h1fRWIz1FEaNIjKnAiWGCgNBFL2SJD48IUs1Tj+m195ohbmfxoISs3yqP Egsae1s2FbHm2opRoUE3CZI7Esf783PUFAgU5voajpjwd9dMzeVodXocd4isXQN2lJdf rZSw== 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; bh=8P488z01V3hNEE6eibDTn61x0ojtNrrvDPnZFjjsedE=; b=f8qXFeplRypS8EAs7RFVmdmIfRfntepIbQoE7ig6CPVGd/1CmhDG6k3aGt+9NtOq4J 8X4JS0E6nw79XyH8A74EnrGBrTq5YjlknTM8L1ftfIi5Z7WyLX39iW2YM2R9+Ynh5GY2 tOCFS5YaNj3sS2ikaa49aduBrClBGsC0ohLGGi6jP9e+Ovp7AdQoqSaKCLTN5YHOowvK nmYlTUSgxn7Vl0hoh448zT1YNae3U8fkXg7fKAePp4vmm29niyea8gXVHbJenreWwXr6 y5IZJkaIO+ydkJSG0DA/uvJ/JLK58d6nL/YefU+RZ4JZ0+yiwSINYlatZdFdRaMdl6UQ 6xDw== X-Gm-Message-State: ACgBeo2LTGyoFgkT0TOHJeExY+1VyMQLsDgv1BTp3CWd9MoRlz8EkAXG y2MdaDi57Duu3gB4eCx8e2jD9c2B8w14qg== X-Received: by 2002:a17:90b:3008:b0:1fa:be55:d1bc with SMTP id hg8-20020a17090b300800b001fabe55d1bcmr276826pjb.114.1660728945868; Wed, 17 Aug 2022 02:35:45 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id q16-20020aa79610000000b00528669a770esm10214285pfg.90.2022.08.17.02.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 02:35:45 -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>, Mark Kettenis <mark.kettenis@xs4all.nl>, Masahisa Kojima <masahisa.kojima@linaro.org> Subject: [PATCH v11 3/9] menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling Date: Wed, 17 Aug 2022 18:36:08 +0900 Message-Id: <20220817093614.32266-4-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220817093614.32266-1-masahisa.kojima@linaro.org> References: <20220817093614.32266-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.6 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..0d19601cf5 100644 --- a/common/menu.c +++ b/common/menu.c @@ -548,4 +548,13 @@ 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; + + if (c == ' ') + *key = KEY_SPACE; } diff --git a/include/menu.h b/include/menu.h index e74616cae8..702aacb170 100644 --- a/include/menu.h +++ b/include/menu.h @@ -48,6 +48,9 @@ enum bootmenu_key { KEY_DOWN, KEY_SELECT, KEY_QUIT, + KEY_PLUS, + KEY_MINUS, + KEY_SPACE, }; void bootmenu_autoboot_loop(struct bootmenu_data *menu,