From patchwork Fri Dec 23 22:57:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 636302 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp497110pvb; Fri, 23 Dec 2022 14:57:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsgF3oZwsaJNz9U/qfnvS9MKIWuYWwqHltpokCsL/tpSbuY/0K0k7lPu1BdK+3d2QQDG3GI X-Received: by 2002:a05:6870:970e:b0:13b:acd4:1315 with SMTP id n14-20020a056870970e00b0013bacd41315mr6486970oaq.39.1671836246339; Fri, 23 Dec 2022 14:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671836246; cv=none; d=google.com; s=arc-20160816; b=KpY6LfNuIurHw/1YnNsk4T9fjJP18nztntlYeEnABqsbkWc+Dp+Qn+BERwM4RildJv mTYLU9hb7HgkWxEjLFB7kMtP5asvOeSUXWo/eSscT5DcLe9QtOti5DFP/ns3X/k9uR8d AXNHSi0GEMz6kxZJChAyGwv9r1TRID0+fX4IrG6C22w9OiD9qknWPvx62uHkaL4WUNPZ 1Bl190LHTgyecl2GF/2lG+z4b57lVnwxdUtFn2/5izNIFOHQzs10Xd4vW4ZF6VruMRNC Go+zkMP3/TMjpKU2ghzwBe2f3ArCSis+4sINPDxbWuSvHqnLxrPWDlKf5hx9M0HgWHyT bMPw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=5EUe3omNiNF/tqZl7bb+6Wj6eql5StTb/o6hhiq66xU=; b=QGb4vMeXMJC92ZG/xpfTJxRVkcua8awMIKzmXf9SgujGdxCLZilB3bYEr3uPxhq3kK JbZ4qHkCdqEuEjY18AMC1cOm5CmReoLU1vUdGqdfIUXQLSKx/9X6yJtix8FhWv3q/uhx 6XwXl8U6zyiQjb0hK5vn6/tK+O68lHCrCjL9m0KxSjf/BUOtS6B9AOWID0WCzf7CQjHW 3JLeIeXaoqo47VLFWoVhD8uIkvAj+fS/BRv1W2icxMHF/j/oB+btrXfLBWZxXmBzBVHS 8coCtmtpAimdaCGBre7ME7t1v5vrr4u/euW5c6wQMLwm9qG9GjDjArXaxJNeYqD6l6te vR1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TnsKTqDQ; 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o36-20020a05687096a400b0013bc839e606si3584340oaq.203.2022.12.23.14.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 14:57:26 -0800 (PST) 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=TnsKTqDQ; 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 0BE78854A9; Fri, 23 Dec 2022 23:57:22 +0100 (CET) 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="TnsKTqDQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4B0CC8548F; Fri, 23 Dec 2022 23:57:20 +0100 (CET) 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 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 ABCA98548F for ; Fri, 23 Dec 2022 23:57:17 +0100 (CET) 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 u4-20020a17090a518400b00223f7eba2c4so6117914pjh.5 for ; Fri, 23 Dec 2022 14:57:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5EUe3omNiNF/tqZl7bb+6Wj6eql5StTb/o6hhiq66xU=; b=TnsKTqDQODhZpilver7tkdERhHP9/DUX+r17ey/iT+MUL5IQSNDSGTMxgu1NyqRxv6 3VT4hTvVn+99NlhcT4CEYIIdwlx7fg+5KyQfwvWI511zqzsyV5pLCjDiP3rjQz4AXqvs P9aSa/6MMxDwB6AmXAnG0jU5XUJ6NZcscp74hLoblBZTPl0ZnBTQkIe+4SHHKHmjZy8u BahhmyopMaDcFsO25jP2S63lEG4XKQtqfJqSv1gGyepc9lkUInVrGr6oHk5aMLWeNhn9 q/75E/YcK3eFawl7VToGSsioGSn5wxeHzY+JOxRSpfdoOGYtvUtWssdnSni6IQ0g/rec yteg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5EUe3omNiNF/tqZl7bb+6Wj6eql5StTb/o6hhiq66xU=; b=txxkigtWf9w7ylc3Hq+QNSmEGnK0qA49apBUMP2DadU0894NRSbY+8YCcLT5BWK9vo CZjp9kKMcNqFozbZiXpiJlL+K5UjB2DMv40g/y3j0q3L2AGLN419jshi8jJAwlInxaa+ IFiMtx2KblyyzyN1aNT1COJWLCVuZhCcoZQyDDwhN315zZx05htIJvv4zIrkOVtuQk8U FsFW3s0FeVMDrsccuqqLVjRW8BYq4tgKLg9otQ4p8nwALZ4Tr0mkI2m8fFwbzhY4kTaX KqyllwJuDkeXdE0q0nG4xKDeDQNtCz8+LyV2uUkxopWDHhhHubbFe1MqPC+7Ty7Hfzkz cXig== X-Gm-Message-State: AFqh2kpU9+3YHkOOBO+IZC+10fbJPifT52H+JBrICAR3i/onwDzjs9JM S9xP7fgH9ZYItcNHNeGOqhIC4nWMJawhCyJ9 X-Received: by 2002:a17:903:1d0:b0:192:4f32:3ba7 with SMTP id e16-20020a17090301d000b001924f323ba7mr10285332plh.18.1671836235671; Fri, 23 Dec 2022 14:57:15 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id bf4-20020a170902b90400b00186b7443082sm2862513plb.195.2022.12.23.14.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 14:57:15 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v2 0/3] eficonfig: add vertical scroll support Date: Sat, 24 Dec 2022 07:57:41 +0900 Message-Id: <20221223225745.16985-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This series aims to add the vertical scroll for the eficonfig menu. Before adding scroll support, this series does the refactoring of change boot order implementation since it has own menu handling and it should be removed to improve maintenanceability. The eficonfig menu handles file selection for EFI load option and secure boot keys, it likely to enumerate tens of files. User can not select the file without scroll if theare are many files under the target directory. This series only modifies the eficonfig menus. Other menus such as bootmenu is not yet done. We need to enhance the U-Boot menu framework itself if we support other menus. Masahisa Kojima (3): eficonfig: refactor eficonfig_process_common function eficonfig: refactor change boot order implementation eficonfig: add vertical scroll support cmd/eficonfig.c | 383 +++++++++++++++++++++++++++++------------- cmd/eficonfig_sbkey.c | 18 +- include/efi_config.h | 17 +- include/efi_loader.h | 1 + 4 files changed, 296 insertions(+), 123 deletions(-)