From patchwork Thu Feb 2 09:24:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 649653 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp135224pva; Thu, 2 Feb 2023 01:25:16 -0800 (PST) X-Google-Smtp-Source: AK7set/lADVI+XbdpE/YDtCY3R7O1OSTJZZ054kqVe51GO6VAqYbjJZ8ReOQGukU1SenDRLZw41B X-Received: by 2002:a05:6870:4152:b0:163:2804:596d with SMTP id r18-20020a056870415200b001632804596dmr2879284oad.19.1675329915944; Thu, 02 Feb 2023 01:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675329915; cv=none; d=google.com; s=arc-20160816; b=iTpRXGzz1IcFdkhZQaf9XHd3vbhcu2zTw7GOAuU5v6fx48bLVpJ5UUin9rbbrkM8M6 MdSrub8DMFOEjBBQsfma8c9e+SLUr9xbqFgv/RMuRWIhbMGakZxc/81+LPBM5fAXlFNe Qq27r6xQCh605rh7aikby8QZScPpgxzhGU4kOp8WP/stQt75iFvfDF46hUAD6gJyeiH0 tU9/kAGh9qD32c29P7usH8PDsLjX/xeYVap37DNo//nj6dqE/04Tyvr+IhaPuUx34jd3 T1sgSD2kIEos2w4mY3wepzK5qflTIUCTAotFQYYJqBWvIN0Axxw2l+LfqZ3vXlAWLKQR +48w== 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=hJ8FEHyMb8MLBRGIEnmjIO5tTpcH7reqrO93tPWHBJI=; b=lIJp+ctNgKGKRinoq8Q+HcicPy6ZAab7MwtWBvOpYWpyMocdSPizh2jIHQsNbG6WU2 mCY4mQw8dDlF4Y3olv/ws+GXnwe4WX7LU0nLfyMgy3ltnld4ZIVZcu0Xp2MKfGYtvUtJ M25KcFI6REJ0oPNVr7ploleos1gc3UXBoM5lbZ7vwwh3Ck5G8FKivXbMzAySi5HNF5Pv FQ2TAdt96pZG+9IOPmKIj9y8KAaQfEI0Emn4HnuvhsktPdog+A16QV57XHC3jTz5/cAA bRMH+1vLWgTlovXiXyQ+oaIvKYUGAlVaQigEIaBQIVlqwLQw36jleyDr8+FrVoOeoWpr BqIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=amxkyeyA; 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 bv6-20020a0568300d8600b0068bc9e835acsi13551868otb.255.2023.02.02.01.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 01:25:15 -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=amxkyeyA; 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 12D4C85EE2; Thu, 2 Feb 2023 10:25:11 +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="amxkyeyA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A4A1F85EDE; Thu, 2 Feb 2023 10:25:09 +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-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 2612585ED4 for ; Thu, 2 Feb 2023 10:25:07 +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-x102a.google.com with SMTP id e8-20020a17090a9a8800b0022c387f0f93so4963831pjp.3 for ; Thu, 02 Feb 2023 01:25:07 -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=hJ8FEHyMb8MLBRGIEnmjIO5tTpcH7reqrO93tPWHBJI=; b=amxkyeyAgjev/mCPBSqDVISHMuvbMvOs/6wA8w2hCYyYwbZCxOLiiakTIFxqpUJ6yv lpiKtNyrPI4rH3+OBsAONGViMhC4poagoCF/4tL1gkCiDOq1zSxmvlt9WeGbrPyW5O+U NlXc0Cft99w1ZBhgjXaVV6XftIOOMbZTIBJx799a4dy5PaDKyWjvhua3WKYIaXlcjlhJ RseRYk2/meg1wJUBGB3falIlqMKkqPMe2Q9w3rCA13C4LM6s+0GznmreHa/MghOPTse8 Rm8Kxxj9Trbo5CeIN9Ub6iHvkEScG9kKRFZ8SohG3iyXyvIVLT/57vw8LLE7FLUdsdUt hx8g== 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=hJ8FEHyMb8MLBRGIEnmjIO5tTpcH7reqrO93tPWHBJI=; b=uSyiThTm3wHPrS5aE0mXvSnmCRfwubLDU/bqRyveFlFuIw2Ptkg9Az3c2aA5S6bPuP SXa50DDdObmitpRDaKNXalV4qToHMSiuXRwx6BMYK2iKwrCve06OSl6EAOFELtJ5eBDJ tff5tUzTfReKMlZ4PjsBJx4PGy9ftOdQffYhGDWbyPC3iGqWC9V1n74Y48AgbEwoN8Qb UjniTZzdy5Kj4vTo4VLVk2yOmBuS/NpqeXDaB5Lzj8Zlk4QFPrBX3W8+OCSO2YJkaLWf 0cKIS3VSuMbowQ1uYZUAyZh1U+xPYFvxmid69uLmQpzWs9V3DsBKj9mXR0Gb6zUzYC94 1smQ== X-Gm-Message-State: AO0yUKVi+y79/s3LU30Nlwez4zoV3KTiLZZ8VxJkKnwqspr9p+nVyaXS 7SLXrwJoHqCYiZ5Q52OE+BLwAH6hI8+3TQo/GEI= X-Received: by 2002:a17:903:32c1:b0:196:82d2:93a with SMTP id i1-20020a17090332c100b0019682d2093amr6569139plr.11.1675329905092; Thu, 02 Feb 2023 01:25:05 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id w4-20020a170902a70400b0019619f27525sm13120349plq.302.2023.02.02.01.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 01:25:04 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH 0/5] improve eficonfig usability Date: Thu, 2 Feb 2023 18:24:42 +0900 Message-Id: <20230202092447.28590-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 improves the eficonfig usability, enhances the error message and fixes the issue reported by coverity. Masahisa Kojima (5): menu: remove CTRL+C to quit eficonfig: CTRL+S to save the boot order eficonfig: set EFICONFIG_ENTRY_NUM_MAX to INT_MAX - 1 eficonfig: include EFI_STATUS string in error message eficonfig: add error message of SetVariable cmd/bootmenu.c | 2 +- cmd/eficonfig.c | 127 ++++++++++++++++++++++++++++++----- cmd/eficonfig_sbkey.c | 16 +++-- common/menu.c | 4 +- doc/usage/cmd/bootmenu.rst | 2 +- include/efi_config.h | 4 +- include/menu.h | 1 + lib/efi_loader/efi_console.c | 2 +- 8 files changed, 127 insertions(+), 31 deletions(-)