From patchwork Fri Jan 20 08:43:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 644635 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp663277pvb; Fri, 20 Jan 2023 00:41:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvcD31XSNR9QpiEa2LSts4bK1arS3joPzxnnBzDdBeNFd+nSZFaisVHO749/0weh0RPqAWA X-Received: by 2002:a05:6870:612b:b0:15f:c133:547e with SMTP id s43-20020a056870612b00b0015fc133547emr1406222oae.39.1674204112366; Fri, 20 Jan 2023 00:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674204112; cv=none; d=google.com; s=arc-20160816; b=K4K39wY9rojZPu+8fcQc+3BgnW0QGjKRWMl2U+w3apKgr7VMT/UvJV5UxoCrdHRZMd n5cJ/H97beOwgBb18JNZu84EQXCXcFt3FoCsYbz8+HIRWKIYM0Gc/yyPhmUDuS4IHEGF KPmQZs8Wmry3hG29u3vKLASZI6nAflHSERbPs57G0QzMDEB/EmCkzauHdt3V/2unaw/z 9p1/+L5xRaDjz99cG/8eo8+K+nSLUee8cENI06G5f59IJGujIKIQl18c3v+U6hDa9j26 Of1odJX8Gp1rBKS9pm+k/IFtqVc8bzWgeVZ8sHSTpOwxPk0sDsPRp2FoGRPY8ejrH2KN Z1/g== 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=bCd8ktdITWbgFZi55d/+ou/RMZXXZ3miB5gXLsekkvo=; b=r95oQqW1QMrnqmM8MjOhaS4wRfvng0mHr31/EeIh9dwW5kyP9xZzgaI9dGyuRgalvZ Hqrknacpho4A7d8t+LPktW8z5RyVL2TzWWFHSzeneuwYHi5LfZiDw+iozks4i4UtwzXG Z4xVDwED/0HUt8HCTlkjyR1pROB56J9oMLS6VyoAjkX6j4TGvkglQo1wjGhpD3ioozT5 GHsPW6UUH7j1Y5LHXxWOwomHKbGeNTSkHnK+KoGMIPABo1EDdMiWXSfJYvYr5ZMIoDjx igJzfRKtzOLrQoBah8jLy1bF7k2TvuKgs70vR0D/4kUskxH5CQXS0LQ3x/6Z0FB0psf0 5x8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LTfyumi2; 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 g1-20020a056870d20100b0015fc8d10976si1236034oac.59.2023.01.20.00.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 00:41:52 -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=LTfyumi2; 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 8A17B856BA; Fri, 20 Jan 2023 09:41:44 +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="LTfyumi2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 45DA78568B; Fri, 20 Jan 2023 09:41:41 +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-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (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 396F58533F for ; Fri, 20 Jan 2023 09:41:38 +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-x1036.google.com with SMTP id x2-20020a17090a46c200b002295ca9855aso8401989pjg.2 for ; Fri, 20 Jan 2023 00:41:38 -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=bCd8ktdITWbgFZi55d/+ou/RMZXXZ3miB5gXLsekkvo=; b=LTfyumi2LjHhIrrvCtqGfu+fPuhrBKiMrLm2mAh7fNU8UGg9Fl42bR7gR8hxhaxlaH HqXYL5Gv3qokVra6JZLhTSKhzK/2UNMjg71uotzUOG1hUTugl7p3p7sf+iwsdBC0mrc5 y8zPLB5UPjhpH19lucLNxgbOLzr2Rv72fsJdYfR8TEFv/ONLxviopgnfYZvJKEguzfLy uISXxlGB/eI1nl+mi8lrBM2zWyt5d8kPXrEhvvDNA+lTIPMGOHsnNPI+cK3GVlwPrn6J oxuzEyc7RfbAEyYJYx5/pjo9ISpwUd/RlvSWsZe9q1VoVa4ggdIREvsJ+K6LWWkdsjLH GZaw== 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=bCd8ktdITWbgFZi55d/+ou/RMZXXZ3miB5gXLsekkvo=; b=BhkCHZM+Tugmigb1SWgT7WzWWwA7xyL7R1MtTZELLgAkuiBAjzNdkB5bIRo3MniuHH QqTuadYPcwMRlaJzxuX7TntmtoWdM35XQB+9Amk2TbiiVJDEpwM0cUUUzD1arawn9xjH 2dpap/0BoW7qAevY1ZiOd5tgAhPGnZ3lS6ASUR0aBOG0kEWhTg3YcjLf+N2GTjqZvPjU KVL90a+oPY7HNVFkjg6GX8sC5aOTeynUSFy12rUVqz9hRORZrGWcerhl2hL0Ms76unet USUrzWuYmGr6wvNP0YckhBLdQGHDG2//hNaBqXOjhZz961gbPECIvNx198xovMaM47lX MEyg== X-Gm-Message-State: AFqh2kqyJSZvTNw6KVx1VPmiABVEr7Y98NsFCzN3Q7Y8W80cm3F5UR3U Za0uOSPLQsK4BpWYMmJtOHyDjh+o/Lqdab9Z X-Received: by 2002:a05:6a20:491a:b0:b5:df4f:6731 with SMTP id ft26-20020a056a20491a00b000b5df4f6731mr15242193pzb.17.1674204096456; Fri, 20 Jan 2023 00:41:36 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id m12-20020a634c4c000000b0047063eb4098sm21652195pgl.37.2023.01.20.00.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 00:41:35 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v4 0/4] eficonfig: add vertical scroll support and refactoring Date: Fri, 20 Jan 2023 17:43:54 +0900 Message-Id: <20230120084358.5919-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 maintainability. 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. [Major update] - rebased to U-Boot master as of 20th Jan. 2023 Masahisa Kojima (4): eficonfig: refactor eficonfig_process_common function eficonfig: refactor change boot order implementation eficonfig: add vertical scroll support eficonfig: increase the number of menu entries cmd/eficonfig.c | 386 +++++++++++++++++++++++++++++------------- cmd/eficonfig_sbkey.c | 18 +- include/efi_config.h | 19 ++- include/efi_loader.h | 1 + 4 files changed, 299 insertions(+), 125 deletions(-)