From patchwork Tue Jan 24 06:56:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 646024 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp40409pvb; Mon, 23 Jan 2023 22:54:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXsjPonxtPloBoCiQIWlENnEFBlMZOgo8iWo1dM3rofE/ctBPExfeyh4oKPastynxbK+SZfn X-Received: by 2002:a05:6830:6185:b0:684:b20e:af65 with SMTP id cb5-20020a056830618500b00684b20eaf65mr23005630otb.28.1674543287442; Mon, 23 Jan 2023 22:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674543287; cv=none; d=google.com; s=arc-20160816; b=0AbH4iPZXyqPIVJ1/+OJHfbRXUVUNuhh3W1YnEq1VeP9DAhfg+MOVlJ+mbSaSvyNBS L0aGh+b1YRwTUUywQa0h3vGhPLdwPXxjqrlU+CeruZO5Sgq3t0vtVe46M0exKWKOuMni /uNJUVak+utXPXnteGjBRjJ4DCHxvYHc04HbrRq6gPzz6JpAqvM+AmcI1LsPAkT3dGP/ mR5oxS7r47wKF4Lb7FaeePgBrkaaK2YkUzi5ZxcwvHcjIELd1whZiaegoDAzLe4qjCDD NpxYd3l5RM1Tn6S//faUnBYgHlg8Z8G0Yh/16qUL3w16+g74Vxbtmrtvsxd5no3P+0iz 16lA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GqvhQO5ssFKsig0JoTxdAyi6Bj76rKrE9Aq1V9exu8E=; b=Y+msOXcSDGzotrn3QABaSQ56USns2rzkT5gxMby86V1ULinRcmNj/9+jt4IhzoJ7ce 5QNO9EwjmYemFgVTvQlR4TaYMqDCiWao25z6x9vUqukULF1yeGHUpgu6pR7dS9+dz0jG u9JehHi7EiUosdeoWPlDtyOIJZivr8FWCgq5BKu7IVRvsegJquxdVxcEWgUa6nWhsXwH gBYjrsAF0kiwDQZwU6ilNNLtpTP7xWv3QMQJabdeVQ8971Yh4O9uAs4HnESbtccyQit9 N6cbDvJOfHXGjSLJ78ZZDfXqCRxsCI5cYFxyoQjq4naSsGUoMYi4I5Z7Km9goneocM+t I58w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tVzUGmyH; 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 r21-20020a056830419500b00686decc66basi1538379otu.256.2023.01.23.22.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 22:54:47 -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=tVzUGmyH; 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 2447E8563B; Tue, 24 Jan 2023 07:54:30 +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="tVzUGmyH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 15735855B7; Tue, 24 Jan 2023 07:54:25 +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 1437485616 for ; Tue, 24 Jan 2023 07:53:51 +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 o13so13918259pjg.2 for ; Mon, 23 Jan 2023 22:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=GqvhQO5ssFKsig0JoTxdAyi6Bj76rKrE9Aq1V9exu8E=; b=tVzUGmyHxIFhlJjg9IfAmdcaWooX3+cX0x24iBrYkd2Uf2Rb7ihanMpP5qzpzSgopW 05M/ndB7vdD9ULWLzr7pUCX8f8vXHmY/lulaTDEYCsh6LUVrdzcXrBkT+loUU8JBrPhC m7BW1joWkWtM/F/l4lVmc5ofAec/vkuZ7KfY7BWp02Zii9rpJVax5rAtenHCe+ZgH+Wv nW5t4+UrfFzBPzsHVjUsyPz7M7m3qLeuuILAbVGzINkBxXDQyHUaf1JRahccbHCN6VC/ hy9Yaj3e/8RCM+gzXV9Ww/8ZYrg/ruOL3G43ITzi68FRzoO94W9I+aoIB9aUJCUgTLYe i+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GqvhQO5ssFKsig0JoTxdAyi6Bj76rKrE9Aq1V9exu8E=; b=o+mHHqt8Aw+XvxAiu4OtLwLuVGPFIf7M6eaMnHWG6k+BDCqJDDgvI4qjJ21LhCneYJ RhjqXTa+gMOH2hrjPMG4YcdN7nNkbeV6+/Oi/oFzQglfFKJI4j5yq5h6M1KZb0Moolc/ ywbrZWPATdAraDe4njKP5fjhMavpO0Hcc0iw5dNmEnHtuevXQSN8uGGCYoAufkxxbv77 PyhRj53KacmR0kVpEoxt3pggYH9VuJ9Cmu4wdY/wsYwpUcuhDUw6diy8u5nKDzKuJif+ RPkauQdK67IQXA2LAk6mkWRNo9mL/9CrNmTrAORzXVUAgFidPkGsMbRGAtKbqdYY0qoK F79w== X-Gm-Message-State: AFqh2kpqGymEaqNzDbH3XrjSE9oCriCJrPRGaYbqBK5rS1ActAtk07VM IC7elDsJzkfVvpmXnsYYYjpHXcHdc5r5Kdb+ X-Received: by 2002:a17:90b:270e:b0:229:ee6d:4178 with SMTP id px14-20020a17090b270e00b00229ee6d4178mr20076162pjb.38.1674543229221; Mon, 23 Jan 2023 22:53:49 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 22:53:48 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v5 4/4] eficonfig: increase the number of menu entries Date: Tue, 24 Jan 2023 15:56:16 +0900 Message-Id: <20230124065616.25559-5-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230124065616.25559-1-masahisa.kojima@linaro.org> References: <20230124065616.25559-1-masahisa.kojima@linaro.org> 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 Current eficonfig has the maximum number of menu entries and it is 99. If there are more EFI load options and files in the system, eficonfig can not handle it. This commit increases this maximum number of menu entries to INT_MAX. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- Newly created in v4 include/efi_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_config.h b/include/efi_config.h index 6a104e4b1d..e5edbb5e09 100644 --- a/include/efi_config.h +++ b/include/efi_config.h @@ -11,7 +11,7 @@ #include #include -#define EFICONFIG_ENTRY_NUM_MAX 99 +#define EFICONFIG_ENTRY_NUM_MAX INT_MAX #define EFICONFIG_VOLUME_PATH_MAX 512 #define EFICONFIG_FILE_PATH_MAX 512 #define EFICONFIG_FILE_PATH_BUF_SIZE (EFICONFIG_FILE_PATH_MAX * sizeof(u16))