From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2FBE5CCD184 for ; Wed, 15 Oct 2025 01:23:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F140483303; Wed, 15 Oct 2025 03:23:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1760491425; bh=w2EgR1TbbXPHvNFkqzIPgB2g40yomx8FYUUfIsToZ1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=hT0TdU9FWExjs9bVBNkF+Qz1Sne69vWaeJ0JN55FWWxZV8lbT+AUop6ylpJng4bik i9REhPxgkBJaJuT7aasLxcdwQifRCTKOPHbt8oO332EwEjGXNNbPCHc4Yz0IkmB/22 6QRw3BfC3jTajFR3RoVdfMNkwRddNrfa/cfNjWrzYmEKicNUvgpq/d05oUCZeeupQP f4BJzqX9a/HnkA0so2zxhkt4hjXorVFT5DBVccmJTU/iZnW0PphwNPQq70F0LTljRf 6FzB93mmjHZC2pG4m3QpjPKGC9dbsqE9owtf53w7IfJEBTJs1EOpovCSO1fwjWI0DR E4xRYi0qDexPA== Received: by phobos.denx.de (Postfix, from userid 109) id 63214835B0; Wed, 15 Oct 2025 03:23:44 +0200 (CEST) Received: from mx.denx.de (mx.denx.de [89.58.32.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7FD7F800D7 for ; Wed, 15 Oct 2025 03:23:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pro@denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.b="IJXsReQf"; dkim-atps=neutral Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3B5141020BDEE; Wed, 15 Oct 2025 03:23:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=mx-20241105; t=1760491422; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=w2EgR1TbbXPHvNFkqzIPgB2g40yomx8FYUUfIsToZ1g=; b=IJXsReQf0zxIfqZBFDcoBpr2qLwuLphD4akH/Qj6a0kFn1q22lnxbr2cNKqXhFqq0SCuHZ NZl4gMWCli0a5at/2Wa+isWii+6sXj6Yan0xTuYtQPVlFkMd7KoeDF9PUaC9xsFuzJkAT4 Y/brYcY0jZgrn6XfnfwZiuKsdOVCC0zsh5r1AfPhALQhToi8B5JzEDweAkC7JEAGlW1NDr BpgMUF7xXHK2g/Xm0RDUwM6kjJZrCRJuHfhex+QGfkZo9PSbJnSQmlTDjO9esC6buIrYvB aMoVkfo8JTm3qbaaF6Z4lBHcYaN6B08YAET9QfSEmGnGiW+TUuy9vYWu/Tm0CA== From: Philip Oberfichtner To: u-boot@lists.denx.de Cc: Philip Oberfichtner , Andre Przywara , Anshul Dalal , Dario Binacchi , Greg Malysa , Heinrich Schuchardt , Ilias Apalodimas , Jerome Forissier , Marek Vasut , Nathan Barrett-Morrison , Peng Fan , Simon Glass , Tom Rini , Trevor Woerner , Ye Li Subject: [PATCH v4 2/3] Image size checks: Clarify help texts Date: Wed, 15 Oct 2025 03:23:19 +0200 Message-Id: <20251015012320.2331007-3-pro@denx.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20251015012320.2331007-1-pro@denx.de> References: <20251015012320.2331007-1-pro@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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.8 at phobos.denx.de X-Virus-Status: Clean Adapt help texts for CONFIG_XXX_SIZE_LIMITs to their new logic. Signed-off-by: Philip Oberfichtner --- Notes: Changes in v4: - Slightly adapt help texts as discussed in v3 Kconfig | 6 +++--- common/spl/Kconfig | 6 +++--- common/spl/Kconfig.tpl | 6 +++--- common/spl/Kconfig.vpl | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Kconfig b/Kconfig index 1d600342685..cb22d718e7c 100644 --- a/Kconfig +++ b/Kconfig @@ -537,7 +537,7 @@ config BUILD_TARGET make / buildman. config HAS_BOARD_SIZE_LIMIT - bool "Define a maximum size for the U-Boot image" + bool "Enable size limit check for the U-Boot image" depends on !COMPILE_TEST default y if RCAR_32 || RCAR_64 help @@ -550,8 +550,8 @@ config BOARD_SIZE_LIMIT default 1048576 if RCAR_64 depends on HAS_BOARD_SIZE_LIMIT help - Maximum size of the U-Boot image. When defined, the build system - checks that the actual size does not exceed it. This does not + Maximum size of the U-Boot image. The build system will throw an + error if the actual image size exceeds this value. This does not include SPL nor TPL, on platforms that use that functionality, they have separate options to restrict size. diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 1e3508b0cf4..385a2614ddb 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -49,7 +49,7 @@ config HAS_SPL_SIZE_LIMIT default y if TARGET_SOCFPGA_GEN5 config SPL_SIZE_LIMIT - hex "Maximum size of SPL image" + hex "Maximum size of SPL image in bytes" depends on HAS_SPL_SIZE_LIMIT default 0x11000 if ARCH_MX6 && !MX6_OCRAM_256KB default 0x31000 if ARCH_MX6 && MX6_OCRAM_256KB @@ -57,8 +57,8 @@ config SPL_SIZE_LIMIT default 0x30000 if SOC_MT7621 default 0x10000 if TARGET_SOCFPGA_GEN5 help - Specifies the maximum length of the U-Boot SPL image. - If this value is zero, it is ignored. + Maximum size of the SPL image. The build system will throw an error if + the actual image size exceeds this value. config SPL_SIZE_LIMIT_SUBTRACT_GD bool "SPL image size check: provide space for global data" diff --git a/common/spl/Kconfig.tpl b/common/spl/Kconfig.tpl index 82ed0a06c89..cd026b4f576 100644 --- a/common/spl/Kconfig.tpl +++ b/common/spl/Kconfig.tpl @@ -8,12 +8,12 @@ config HAS_TPL_SIZE_LIMIT default y if INTEL_APOLLOLAKE config TPL_SIZE_LIMIT - hex "Maximum size of TPL image" + hex "Maximum size of TPL image in bytes" depends on HAS_TPL_SIZE_LIMIT default 0x7800 if INTEL_APOLLOLAKE help - Specifies the maximum length of the U-Boot TPL image. - If this value is zero, it is ignored. + Maximum size of the TPL image. The build system will throw an error if + the actual image size exceeds this value. config TPL_BINMAN_SYMBOLS bool "Support binman symbols in TPL" diff --git a/common/spl/Kconfig.vpl b/common/spl/Kconfig.vpl index 1945fa22b6b..98dc035c7ca 100644 --- a/common/spl/Kconfig.vpl +++ b/common/spl/Kconfig.vpl @@ -226,11 +226,11 @@ config HAS_VPL_SIZE_LIMIT depends on VPL config VPL_SIZE_LIMIT - hex "Maximum size of VPL image" + hex "Maximum size of VPL image in bytes" depends on HAS_VPL_SIZE_LIMIT help - Specifies the maximum length of the U-Boot VPL image. - If this value is zero, it is ignored. + Maximum size of the VPL image. The build system will throw an error if + the actual image size exceeds this value. config VPL_SPI bool "Support SPI drivers" -- 2.39.5