Message ID | 20220826064223.23288-4-masahisa.kojima@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp231137mae; Thu, 25 Aug 2022 23:42:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6v9iUOMpxridIoqwuJvJC4aTkVKeKpPXQ4pKYIonnW2MZjLRzhSz5w4rpaiSVXQY1JgCBA X-Received: by 2002:a05:6402:2792:b0:446:8864:26c1 with SMTP id b18-20020a056402279200b00446886426c1mr5650322ede.70.1661496142754; Thu, 25 Aug 2022 23:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661496142; cv=none; d=google.com; s=arc-20160816; b=XAKfQzMyrzN3PR/0erCMU/ILg3xLiujip5fznhvPmzl85d4Zed2l4j1gCmAKRLD/ng Uxq3L6KON2DvCQ5QYQkiyZlM6b0ufHrMAyroXo/MF4qU51ex7Cqz/cqnXP0Vm2Qm/DVq gq76zaSpDdIJ14dygcAYUSfaGwt73aFqOw7/2QwO5BZMzErn9VoRZMyK11Vk5tp5cbYe EDW2yV4kFwVrB8tMTak5sSC/QxzfmSiAjoO8b373+8k+xXj83xtnGSidlNyG9hNAj4Ft 2sN/IYF08hHbcnKrk6jwMYX1/Y9h+sGmtF6kAY0GRZx4SdcNDw6MOiZRGvH9mknXVzws bB2Q== 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=nxxHqT3LQmYnOzhmoQJ9it5hG8dE8c8+kpqf94HPN3Y=; b=t8pHm1Svr/osqJlHXP9zEiOT2CaRUXtuRGppJzf/z0FMgWMPy1YiaN8GtNI29S2s9r WoHy6IIewKEfQWEtKWJmAsvJb2VUPP2SzRRSF64BQzZZynkl09/YTDgRo6Zoc32eLKVY aOBd2NFKUiKJi1BRhlsqd5hTqUx8ip3LOXiWZsfob/EE5p94QcBIfNqoWRCA7Dz5TWJm gfW+z7308spS7XcZTNQp95GvKg8eBrXYwl5WSYcIdWykNDI1JgBpv7Uw0novNMVp9Xq1 NRugaXNxwV4tDhNASwJHp2JOIwOeSySAj6h8yUHXr8jK7ZU6gbFemX4mjl5/A2yge9fl PtNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BCCe+RWD; 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 ne38-20020a1709077ba600b0073d853e4e66si829849ejc.362.2022.08.25.23.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 23:42:22 -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=BCCe+RWD; 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 A5CDB848BA; Fri, 26 Aug 2022 08:41:59 +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="BCCe+RWD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8FB0A848B5; Fri, 26 Aug 2022 08:41:37 +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-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (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 5E5F5848BC for <u-boot@lists.denx.de>; Fri, 26 Aug 2022 08:41: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-pj1-x102b.google.com with SMTP id i8-20020a17090a65c800b001fd602afda2so798143pjs.4 for <u-boot@lists.denx.de>; Thu, 25 Aug 2022 23:41:31 -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=nxxHqT3LQmYnOzhmoQJ9it5hG8dE8c8+kpqf94HPN3Y=; b=BCCe+RWDjTdZ30y1oiqIt0RD3Lh1fepDSdx180ojnYdMJRa/QD785kqiGncbsSz4wh EwrAvnNrV5xmNDN+3X6gPX2Gh5fkBVdX3sne2DJsTdia+yiPl0TsejNv28Cjlleqciwb CaP5sgkZ9M8vKju3wGiwfG7AEyBL+3l2YX+f2kWV+vM8yZkL1HGmtZak9XDzhO5xMIKW EC6nBYGvl8qx4/O9TaUe2UJ6cNEPGAwneLAQGaA3eCG1/VqLR9ZNqEuK6EOTSwVvmNUk Kj6Vf94POCams1QU7B88sxDmczd0S1Ir57zszj8D/iea5s/dRBRNkiifrs6CJ+tEfula 0suA== 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=nxxHqT3LQmYnOzhmoQJ9it5hG8dE8c8+kpqf94HPN3Y=; b=HDzkbRMEefT5liBX33PavO1xbC521rAj8K5Xtecc9wferUiByiUOz/c8uusMFWPeiu HYbRl2UKW/fBFMMdzPurSEMqBTA3uB3QXGSyBN6UkNqaCjpf6BUojIsbmYH981wszR+3 GHa17D+ObA8T7m7eX0+RHmK1LKZW/NjsICu27yFFvkoOcPnQixhd1VFOWdDhoyKXwDl5 77uoPEeoZLOZOK8TKykqzAOHo/Yufrc6cd1DDhEuN4f+bU3Uv5+r+3fDKQ2sA1PRXkKl sQ8JlckfMQGrb/EbsDMb48B6tHOPWAF9Tn538OTNjQPk0iwgYhc+jsma/kMq5pwP9f1P 2k1Q== X-Gm-Message-State: ACgBeo2QhXPy0krhC/gy3k2zeVtAqkQHAjCp53SZW2DDyV4kBjmK+zep FBtDcbhsWLm51qCRAEjmCnlAc3Mf3lrQ9w== X-Received: by 2002:a17:90a:df02:b0:1fa:ba39:ec49 with SMTP id gp2-20020a17090adf0200b001faba39ec49mr2837341pjb.129.1661496088970; Thu, 25 Aug 2022 23:41:28 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id f8-20020a170902ce8800b0016d62ba5665sm694641plg.254.2022.08.25.23.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 23:41:28 -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 v14 03/10] menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling Date: Fri, 26 Aug 2022 15:42:16 +0900 Message-Id: <20220826064223.23288-4-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220826064223.23288-1-masahisa.kojima@linaro.org> References: <20220826064223.23288-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,