From patchwork Wed Dec 21 13:50:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 635626 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp3519840pvb; Wed, 21 Dec 2022 05:51:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXsIn+eEWuYa/OYy8w9lmGBqdh2d6sxR+k/olnTg9BPC1bQRqZMN1yJkYbH47ajcnYKf/vLg X-Received: by 2002:a05:6808:1b24:b0:35c:51b2:3ae8 with SMTP id bx36-20020a0568081b2400b0035c51b23ae8mr773625oib.3.1671630671977; Wed, 21 Dec 2022 05:51:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671630671; cv=none; d=google.com; s=arc-20160816; b=ip80IBDAIjlnJDK4Bq71hT4Mjbq3flhnagPr16jEvuXCecrUgFEVb/411OtDG63yCQ ZwxszXNgBEr+7XEipSwQl+sNtJ30Ni36oImajqif87rX1ftg162//qF1GVyTgQ7FgI7l etS37bJrFLId397aR7JhTAe4OzTjBhnfY0NmmKb0GHM6/Zreca7ZXEyswEEymuEI5OP9 RtkibsB379fcTUakY+jZmp5nc4JI5SO6n5tzClS5fnwhRpsBbVZU4ul+fZgd1g799zPz qLDD6Aw3umMbvbHKg7FxfwrWPXr6YPXVuSC4lXaGHDlx4AJaU6ZYRz/xVouZT5oz0V2B j7uA== 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=JSRt3slCOK5xKC5p50KwvcASEUKn8vy3i9bWgy9dFTA=; b=bCw2l0IiV/D+bb5dIE+mQdK2kobwvJDpTBMvFtqXPph5b0XNikITVNt3ZfpwgPcSj5 TOjpR7yG5rWXdRsZrM4XpcyJ3D5psLo+Ot+Bu4Uyr3YNthPtJXuPWn/deHQgwk20gLm5 1AB8uwMAKQVFGgzo/7Qkl+HlwLGXpv/ONXlVchDxA1BcZJQJCf4faEoO7+pFSOl0wGJW 060XzIfda4q4jeykGpR6kHHeUnFmqFl5GGduR9vOaYzAQhSFbywdzxu+KRMkfzswJWGT ogTddppqPTWr5K55togBmhxqFe2BTDf81iiDCsCAQ1AXJ8MMuC/ak/TFCWAP+WTS5jAu DlOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dF87TPlM; 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 bh8-20020a056808180800b0035ea587e3b8si14763280oib.243.2022.12.21.05.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 05:51:11 -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=dF87TPlM; 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 75F5C8540D; Wed, 21 Dec 2022 14:51:05 +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="dF87TPlM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 747AA85406; Wed, 21 Dec 2022 14:51:03 +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-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 9D45785236 for ; Wed, 21 Dec 2022 14:51:00 +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-pf1-x429.google.com with SMTP id c7so10692772pfc.12 for ; Wed, 21 Dec 2022 05:51:00 -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=JSRt3slCOK5xKC5p50KwvcASEUKn8vy3i9bWgy9dFTA=; b=dF87TPlM5KhMuboVUDlvgJ6YTXJ4CYl/PgwtWbgCl1hHMBmZ/L0MjBpl4Iij9nBbBD M0jY0sQdmnPR+i/ZQTDg5fug7PPVwZi5dzdijK8gCrjv+yEW2454JQlJbD/M4hopbSlC CaQyaCXMnYYm/Cc8HVByC/hB48+6N9kj1IjIqGT9zCCfa0LtvnlEXs/oWFcsg8b9tiWn ZDXtMQlvdiRPI2x/e+TW3hv2wLZxgo+Oqfxyuz92NepC6R2GBxjR1skB1Zj+ZCn/e5FK Z99klGQ4+MkpaZ3PERxprbRivw2EReQNp3bFDnYYBf4ULe0GJQn4661mSX4GfMlZTVc1 o/sw== 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=JSRt3slCOK5xKC5p50KwvcASEUKn8vy3i9bWgy9dFTA=; b=WaDlVSY0ZREkWU+jFsLnQ9ivjk15w/6itcKVzorPqwuTFpNhUn1AaqzELEyQgzP7Cz B239LVGno+O1VAHOii6W6Dldjetqxh+sfZ9TK95H5cSvad6iA4x0aqYVUaDkB2vZ81Wu 7jSEBacehFQhCAMjObWA6k4KHTcdwSNZIAM1lNpoG4SQkgWpBqiohwK2uzfFl8MWuXcn IN2bGcNv7kxbiD9jD8ASrR898oneiD2oWyGI4o6JXRBHqgzY42Ylgpnt9B6nTeHbqq3m zITMndYFcWm5oNIMmpMCu/Sf2MSVEPRYa/BN/y6gNbr1/Gxmlg75syi0Z9aKqiAn+zOH QKjg== X-Gm-Message-State: AFqh2kqmkm0KwnA/AC+d9X0OymDffaItYgERnuCfvQL4+muPuylvZHVp tgp3lzimzWhTDcOlkg2QkECiGGWjvW3KUfr9 X-Received: by 2002:a62:58c1:0:b0:573:f869:2115 with SMTP id m184-20020a6258c1000000b00573f8692115mr2273130pfb.9.1671630658484; Wed, 21 Dec 2022 05:50:58 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id h10-20020aa796ca000000b00571cdbd0771sm10618227pfq.102.2022.12.21.05.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 05:50:57 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH 0/3] eficonfig: add vertical scroll support Date: Wed, 21 Dec 2022 22:50:35 +0900 Message-Id: <20221221135039.32349-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 | 374 +++++++++++++++++++++++++++++------------- cmd/eficonfig_sbkey.c | 18 +- include/efi_config.h | 17 +- include/efi_loader.h | 1 + 4 files changed, 289 insertions(+), 121 deletions(-)