From patchwork Fri Jan 20 08:43:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 644639 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp663616pvb; Fri, 20 Jan 2023 00:42:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXuD2zkT0D99C8XB6Cv1oN7cR2N0VxjKfhC1Lww1+TCd95GRzKGc03CIdH/wuukFpiUnqoMg X-Received: by 2002:a05:6871:450d:b0:15f:f55:282f with SMTP id nj13-20020a056871450d00b0015f0f55282fmr7304030oab.45.1674204176071; Fri, 20 Jan 2023 00:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674204176; cv=none; d=google.com; s=arc-20160816; b=kdmrQbs1lq4vSZyRNFc67Ov4Fi74JaDIG1/bhTp5RJaTNZ43a0OrCCOGmC+BGXmAky kCBhlQ7SSzXzDaWPcs1+uAc3dV2FlmIj2QV80Mn0MDH4uGWaTH3BmQPswMFZO9A5wVbn ul4letm2MVk8Lfo/Ik89OaewN/o5RsVvTFP7KeAE0iIqwugDCntioLLabor2Fsnfm2PH vCvihU11vs/BIBUy490nZmQI5qmzRI1GtK/h1gXcy0Tjw2oXsaM0fdcdDX2DCi9qomsT xTv2SzhlnPaouK3Lf48hoLas4x8UlpeHMhCcis/lrXQd9rXGUrx+P8rWzGFiqVQa9afI bawg== 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=WoksOS9i8lSGnSOKcVlpHoI78JNRa2NTYeEPYMCFagc=; b=FXb0Vr4N1VzeuqplOvdK3GyGYZ2YEnda+z6A0sB4Rip3bAxZvPyf/jjjuXkZoplK2i d37COoquwvyEGEcwK7K3aENFvV+dP456Luu+hLrlTQVWDLywmQJzjpnA7wG5/rncTLjW kyu9O2kkrrvmnuSo9SH5Sj+EIpp3Pc7jhgPkXQg79Sti0J0lMDg2TTw36gVD0l4AMxEh ZzihRuSLTyE9U6MA6WHqDtnCVa0I/sPk+y2LOC5ptI3zwPS49JkDry3PTtgPWLfZtdSG QJ9tVOg0Y4FsQsOrDCFiCnFd4LVfWLmiI+sqLSctiFW8oevZLXQRCpCdhWYdFXawp1h3 SR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TDDYVG96; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id e23-20020a056870239700b0015edf025626si20444072oap.153.2023.01.20.00.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 00:42:56 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TDDYVG96; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 ECCC6856DE; Fri, 20 Jan 2023 09:42:33 +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="TDDYVG96"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 814A6853D1; Fri, 20 Jan 2023 09:41:53 +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-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 CDCF885668 for ; Fri, 20 Jan 2023 09:41:47 +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-pl1-x62d.google.com with SMTP id b17so4745237pld.7 for ; Fri, 20 Jan 2023 00:41:47 -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=WoksOS9i8lSGnSOKcVlpHoI78JNRa2NTYeEPYMCFagc=; b=TDDYVG96W3tsf47Lik96PyoSoiU6YuvfKlOxAJjnviDv03+O5os9vyurTqpTktN0T8 yWmxv1oKKVv6SZeNb4UTlj7hIdZ0/T35DJxpZ9Z0fxKVsWBOyZBiENJaqxW42Ttgt5Ba RUcAjL0e9DUPUys1/6jZ0uK0r4pUbZ1iaLPQCse3N/NwqH3jCpnKF9nMDxcbx67WDBAb lubaK0LTemLXy1c9jDthLQgm35S4kLK7olH/o3X2BAXnwU+ZmlRLKAb/iV2lPOxVMpBQ lJUS8KcavMmOWHOKOQwNrCQ1qDiaTxgTfZSPviPSFvwgOJA6bU/Z6A4NWD+WqwdCmUXd rvLA== 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=WoksOS9i8lSGnSOKcVlpHoI78JNRa2NTYeEPYMCFagc=; b=md3jtWtJqK4e5GI7H8k2Tt78/YjBf8VzwImQz/8420xZEz2Y1NA3smKitnHzqynR01 T5t+Fan6/P9NnQq14JoNJw4DgJtk6pA5W140reNFZEO5uOEDl2EytBEfS1i7wRtad2sP aDdkQhAXhOF+iXsuTeBCrjEmbZSmeKJb9RHrMj3RfHdl4xXRXeOSs37EtCXLpujvBqs8 HOZ0tN44rdRWF3c/YD8+DIxlo99SOmUlsd9mFpBrJRoAwZhEv3DxBdRsWQj1ZMSXq8QU Rx0K1cP9yT4rnu+qk2LSpvzwawX7kgRLTkUFbnYGYmaFzrSbGk4eBWmFwfWCRBoe9aL/ 3YoA== X-Gm-Message-State: AFqh2koisuryrGN3Q12FMQndQZpiwzOPiCMNORZwVHY+bUiHAZ4TA/de mthp6Zmp86ISj1Jqg2telfBm6yPpscR3Qbkm X-Received: by 2002:a05:6a21:9998:b0:b8:2e75:c973 with SMTP id ve24-20020a056a21999800b000b82e75c973mr21531592pzb.49.1674204105491; Fri, 20 Jan 2023 00:41:45 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id m12-20020a634c4c000000b0047063eb4098sm21652195pgl.37.2023.01.20.00.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 00:41:45 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH v4 4/4] eficonfig: increase the number of menu entries Date: Fri, 20 Jan 2023 17:43:58 +0900 Message-Id: <20230120084358.5919-5-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230120084358.5919-1-masahisa.kojima@linaro.org> References: <20230120084358.5919-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))