Message ID | 20220715142743.30137-5-masahisa.kojima@linaro.org |
---|---|
State | Superseded |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=k7x/uRlS; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lktty3LR1z9s07 for <incoming@patchwork.ozlabs.org>; Sat, 16 Jul 2022 00:25:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 888FA8191C; Fri, 15 Jul 2022 16:25:18 +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="k7x/uRlS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D34C81872; Fri, 15 Jul 2022 16:25:14 +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-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 6B2C6811CA for <u-boot@lists.denx.de>; Fri, 15 Jul 2022 16:25:09 +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-pg1-x536.google.com with SMTP id e132so4544422pgc.5 for <u-boot@lists.denx.de>; Fri, 15 Jul 2022 07:25:09 -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=w+mVP1Njm31l7f2XbiAc9Nmn/WOjAcUUdc/0fUHeZ54=; b=k7x/uRlSj5tYgsKZxfngKGcNfDylTTeoccpPkVSxVN4Hz0JKModuvtYUUX2y1W7KsB /z2oNtOwMj4x4LBLVt/rYCLmNO4+loBJh/qxzZ7dcARQrL64DawofVuFUeHxCN3+rJjC DL7k7dAdag38RXdvk9UKFJ6JL63izRsQwD/WgbIpxXzcHpYl1DMYOAjcf74jm4Zspsdo OkmousrCor3A7Y0usRj+WzZlm3g7ZrcG7PNoZY2PvYK5uqImhcWOBV5/vmXhXscpgLHd JVir6QsHRNpU+C6fPzl9DQeE282HTu8AK17JpDOMZtHCXHC624H74gjRMgvBgUY9T74b T45g== 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=w+mVP1Njm31l7f2XbiAc9Nmn/WOjAcUUdc/0fUHeZ54=; b=BXAZGN2poLw5OyGsHB0JnPud0NOMDjkT2Z1PBevC3DISyjyI0NWE6ozyZwtEVPO+5T eRActhrXW+m34PB77zmSSH/kzJ6vAXM412I+B6M3etQ5OUQeMc0BbiUeW9mgOBXxvZSa oH45KWwwDtaihH0GF8NIkn68wudOtg0Gf7dc0TLVwKgOkdT6nmawCN59JUuXA+tRz8CY qKbuzr9BrF9Ob0cJStwoGLJCqw83ckny3/fn/22qCtxt9MbtGiXoalYnM6RCJWc7SeEJ 87MLEz+CuqfpVYYsfvkwjMnYhg5bZnyAQr50ReQKTRZ2I+jFSASARz8pPlCSkjsJ56m5 yHiA== X-Gm-Message-State: AJIora8jyU9Q28+caV9r6p4MHxMEoZHlzWLBI4OpeAVRrDw28CvSD0pg sutOKWijet2FkumVULo6LiVzGpaKt9Qodg== X-Google-Smtp-Source: AGRyM1tXFX1vTz+PQto3ALNgtmw0sRV9kX6aMOJ/9aC/s2jTEByRbWwnw1N4xZW7k8qL74gdKi0wFw== X-Received: by 2002:a63:551:0:b0:419:9286:56 with SMTP id 78-20020a630551000000b0041992860056mr11565694pgf.267.1657895107324; Fri, 15 Jul 2022 07:25:07 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id d22-20020aa797b6000000b0051c49fb62b7sm3891174pfq.165.2022.07.15.07.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 07:25:06 -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 4/9] menu: add KEY_PLUS and KEY_MINUS handling Date: Fri, 15 Jul 2022 23:27:38 +0900 Message-Id: <20220715142743.30137-5-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220715142743.30137-1-masahisa.kojima@linaro.org> References: <20220715142743.30137-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..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,