From patchwork Tue Jan 24 06:56:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 646022 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp40196pvb; Mon, 23 Jan 2023 22:53:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXtkCKw4akjErTGq9TAMEES9siC4kynBPZGtxaLVx6mcr5dNToo2T5qoGEWB6rZkKyWT0Wpd X-Received: by 2002:a05:6830:b89:b0:684:eba6:6873 with SMTP id a9-20020a0568300b8900b00684eba66873mr13225280otv.19.1674543230753; Mon, 23 Jan 2023 22:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674543230; cv=none; d=google.com; s=arc-20160816; b=AMG6gmeGSVLY4mGmDTxIFGryKVAUrvAihuowG6hAIme6iL9fF+hvxaIgU54FDPCLyc fipz6r1wBMHlva64hhqtr1TjD1c63HVObW+8BGqjHLF7mPgPebC9ry89NJRpRgeQvLL5 SP2bPdww6WLP2pxZVJmGf3K4d6gBjn53U1VODwjm21Bw4cPfrjvH2v4JyvDUm05pGqAb 7SfOMo6wkfkfSJAVExjV8ZOo88VwNENtVoOXMAD/5i4NVYMKMB2bAQ2tFe/zQQI04PpF vvZKkltnE13PbM/mG9DJ3kQHkIEnWATkXDU4ZvJsxGlx9bdoF2mmtS4S1Tro8XKSFCE/ k64g== 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=hLELEs32hqMArghdDvqxt1z+H80zftB+g2M3sSSGRfo=; b=pVJz0tSXSUIxEYmIA1RFm7mXX26DfLJGARa46KfCeA/uqKtumG99MwkuI4DIty1Wiv G9uxPrSrTnqduaSjGuOUt+zgKdKWpBAt2Slu6kBdGu1uLAMZD5sXMs0wKy+oV9dcPSAH POXB4B03nBb31YokuXGBbmflr1ufRDT4jnhcCuAuUi5AFylFKv8Vo3PifYH+5rLseZf6 LOUCQzk/DNE2HCePCOiGyMPECpDNwMFRb12g5OFWExMLA8LDIQvrQYAGB3kcGZcgYlNj Y5nPxPZpreGY0cx+tGEZ0szFqbFeefImuV4YMA0sjBFbTmWCM17l0X3XyOeTxeO21FWV wt7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cH3XJsWM; 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 c12-20020a9d784c000000b006869ff6a302si1334888otm.192.2023.01.23.22.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 22:53:50 -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=cH3XJsWM; 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 B70D48557E; Tue, 24 Jan 2023 07:53:46 +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="cH3XJsWM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D6EAD8529D; Tue, 24 Jan 2023 07:53:44 +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 65FFB8557E for ; Tue, 24 Jan 2023 07:53:42 +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 e10-20020a17090a630a00b0022bedd66e6dso1027071pjj.1 for ; Mon, 23 Jan 2023 22:53:42 -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=hLELEs32hqMArghdDvqxt1z+H80zftB+g2M3sSSGRfo=; b=cH3XJsWMX+vjuz5q1nLyQhQKDTv6MN2w6zxKVPDQvovc2erCeNQtpiN+6VmkOrU2r9 xn/LW2YFKOa/6ix6orWFvZuWEI+rasniWWwGHGbuNXhFO32cUUsLU5J2CWGW7j/mNEkN 29oWB45idM6qGx1T6uoqsAql6mByluIHNc1BjcW8KAq8tA7F52Kbm/GnRz0nxGHDR8RL NzxKwmQ3VeDe7vgxpsyXMnKy5Roam++TaDx0+3s2AEnsLFcVAK83V6Wu9gto6eLCPROX InsfsjYgHnknBMdsIkBJlG+ufFwyvK43qjTJvLXvpHk6VnesAbvi11X5kzCiVtOsG6v4 TzSg== 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=hLELEs32hqMArghdDvqxt1z+H80zftB+g2M3sSSGRfo=; b=gKnsHjVR+Bkw8pLAfjsax4y5VlayXh0AIhNrwbKUe+ggKI/+zRqqYfSuvdDXDbbdkZ qkdwh/t2omcr9u4J52D2ztEtUro5ovSo5CtGfXqswJUyOSjPEHfZ2y4jcGFoT6XSQZqb s+AnjQPiw6cTeF8MyUh8Us0Uq6YPM3STL+SYX9yKkr7FgvsPToLR/ahzvfg5fCrXN3mI VmL/B/6N3xYq7nuyilyeoUKrMUwrvxvrFyKc6hT3z9L5N0sp5ikkyex7UlrA3MUziAKV dIHtTJbefkcKR6mDxtxlVa+k3lzCrn3C79RWck2PpmNzM9caphFqfiB2+ita7u86/i+0 nzaA== X-Gm-Message-State: AFqh2kqJkyJJ3KkV9qleh5PB2zh76HdjYi0OyJUSgkvluLLAsci9WU3e 5GccNuFixFIb7D8iq6i6hQVlCzitDm2MYbt3 X-Received: by 2002:a05:6a21:3290:b0:b6:68d5:1ec3 with SMTP id yt16-20020a056a21329000b000b668d51ec3mr32433764pzb.6.1674543220135; Mon, 23 Jan 2023 22:53:40 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id q102-20020a17090a1b6f00b002293b1aa2b6sm1254873pjq.30.2023.01.23.22.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 22:53:39 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v5 0/4] eficonfig: add vertical scroll support and refactoring Date: Tue, 24 Jan 2023 15:56:12 +0900 Message-Id: <20230124065616.25559-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. 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 | 399 +++++++++++++++++++++++++++++------------- cmd/eficonfig_sbkey.c | 18 +- include/efi_config.h | 19 +- include/efi_loader.h | 1 + 4 files changed, 309 insertions(+), 128 deletions(-)