From patchwork Thu Jan 5 02:58:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 639240 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp27377pvb; Wed, 4 Jan 2023 18:58:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXsBDyZV6p9J8BWu1gIiSqp+3UZBistV267cdZo+4Z/5d4u1Qd4VF83oe/rSOzYz9ZR/PXLk X-Received: by 2002:a05:6808:1411:b0:363:b790:7aca with SMTP id w17-20020a056808141100b00363b7907acamr8892560oiv.46.1672887519166; Wed, 04 Jan 2023 18:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672887519; cv=none; d=google.com; s=arc-20160816; b=LeMSpd/QzQGcPfdZC10j//1z3pNSlTDRu+t186ZqeSNas1kGo9JbaBlIUFf4RijFYT qBAla8/n9hYJP2oYdj5afxvNvj9lCJfB1sjcTig9ADKvHicIhPAa5k8wbrdWVxF7KywQ bx5jw52Wnf74dJ1MKaPo/6atVTm8sYWL+1wfo+Xdd/GPyaVPjeCf1ORijDUenNetlMsw N2sKdPkHhq5wK4auR07JtK5SGU7QgEsw/1YJRjM7VhnIuYTT15hIioRGFV+ON0kt/nB3 ppP7L+sK8CanoxiWsNMwFfMS9dDeLGi1Llb1ujHwKNoMuQ5WZZMT2171TOy5yS2WJn6E KkkQ== 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=FjHq+Jutzb2G32Gwee7uLxNHhtmWKlaUjczYUFC8FZE=; b=iGWbJIhjNh1VNdG2TiN8iuw73VrPAvuJlAXq48fSU+0EZmGL1ak+JqHThvrmzqVpA4 IjOw1Jldxbc4eU1YYHRMXcgvqDctzRPr+Q8aTUCxf/9ffSRDrj18EMc3VHUpRQMJ79QQ 93WIHaHOUW7znFLZhRuZevp9Yyp2mU9WsyLHxWj99R9hurnBQ32L+TJawMKdLG0exZ16 ilzcPRGeFoeVrTC5xVJ2CANMKfRaOiiTBO4JZWsB6I/oOp1+JJH3eNZVv5dnVACPlklt EN0UOpJNo0MDC2b+Z6SHkHCj0a6tx8UybX72IWle8umhhIZ4H7xY/qJwQY3Eq74Ombc+ kh/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I3wgcdaI; 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: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id u17-20020a9d4d91000000b0066c40c42f46si26027911otk.135.2023.01.04.18.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 18:58:38 -0800 (PST) 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=I3wgcdaI; 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 31ED685588; Thu, 5 Jan 2023 03:58:34 +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="I3wgcdaI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 05CAA85524; Thu, 5 Jan 2023 03:58:32 +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-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 20E0685524 for ; Thu, 5 Jan 2023 03:58:29 +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-x1031.google.com with SMTP id o21so8347257pjw.0 for ; Wed, 04 Jan 2023 18:58:29 -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=FjHq+Jutzb2G32Gwee7uLxNHhtmWKlaUjczYUFC8FZE=; b=I3wgcdaIInUGTBAm/BLrvqFD2G4iDJOlb0GSrAJmn8IYYHVfsCdF8APsda+4dYu+8+ BqgFGE9sJEL+Ct0RFkkU2/PqTpvCUl9T6SiBWp9GcQf9xVZ2/t+rsOfI/XaBVq4lxSOe ATjHRwV4pTvYUXIund4VpHyrbMZvHADH2lz4fl0zaP9TTSHMjBdZYkl7Bv8PTm3dlEpC BV0rdFThD+WEOqK+exYqeh5ADsr7WYwv3jfRsKHGimcXbk2HoIw2ghyO2C5B+8dNYAAS XbT0xmPtOtFYp1feSxbns2qCCJG/eoyP37JAC3qfOQH+ALH5YGMg+AS3bCZQmQHE5nJN NckQ== 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=FjHq+Jutzb2G32Gwee7uLxNHhtmWKlaUjczYUFC8FZE=; b=wtGauLCTcE3EH7INRpRsgtQlks5ahZ/Wl9NoEWxKuW2T9eDsLFQPEfkK4jJJ5iIu7v tXPv4khK+MIGjU+tbzBMUYWaPaxjF+6mygLl32Mbl8P53vcTYYeXU9szV7VF7BZboQUS b00sl6toVjzdJfLJQuYUorybz5fyrZ0o+nLGZy0A8g1vXjSQG2S5UI1LhvXYvjSokAgp odlOZnsjqdJnP2ZR3vR53ui1a90c6guSeTSHniwDIXpQw0XZ0GnWtCBxmQ3F7zlgZejT XAl4FtmhOW+2bYC4jeFVurmokwkvpPmrLXMbsorsGF8QXQEblXCgvjHtZGrKC6keZQps fWFw== X-Gm-Message-State: AFqh2kopUZvdwEzY04N2HL4W2JAmm13boPmi6r8qU7LttXhKnkwBe8pk jMVptb41umZOMt7ic5aUzIuvxhz/KD1TC/zG X-Received: by 2002:a17:902:b18b:b0:192:6198:a51b with SMTP id s11-20020a170902b18b00b001926198a51bmr45404554plr.20.1672887507235; Wed, 04 Jan 2023 18:58:27 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id g18-20020a170902869200b00192b23b8451sm10729546plo.108.2023.01.04.18.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 18:58:26 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v3 0/3] eficonfig: add vertical scroll support and refactoring Date: Thu, 5 Jan 2023 11:58:51 +0900 Message-Id: <20230105025855.16936-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 | 385 +++++++++++++++++++++++++++++------------- cmd/eficonfig_sbkey.c | 18 +- include/efi_config.h | 17 +- include/efi_loader.h | 1 + 4 files changed, 297 insertions(+), 124 deletions(-)