From: Philip Oberfichtner <pro@denx.de>
To: u-boot@lists.denx.de
Cc: Philip Oberfichtner <pro@denx.de>,
Andre Przywara <andre.przywara@arm.com>,
Anshul Dalal <anshuld@ti.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Greg Malysa <malysagreg@gmail.com>,
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Jerome Forissier <jerome.forissier@linaro.org>,
Marek Vasut <marek.vasut@mailbox.org>,
Nathan Barrett-Morrison <nathan.morrison@timesys.com>,
Peng Fan <peng.fan@nxp.com>, Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>,
Trevor Woerner <twoerner@gmail.com>, Ye Li <ye.li@nxp.com>
Subject: [PATCH v5 2/3] Image size checks: Clarify help texts
Date: Mon, 10 Nov 2025 10:12:55 +0100 [thread overview]
Message-ID: <20251110091256.2422534-3-pro@denx.de> (raw)
In-Reply-To: <20251110091256.2422534-1-pro@denx.de>
Adapt help texts for CONFIG_XXX_SIZE_LIMITs to their new logic.
Signed-off-by: Philip Oberfichtner <pro@denx.de>
---
Notes:
Changes in v5: Polish help texts
Kconfig | 10 +++++-----
common/spl/Kconfig | 6 +++---
common/spl/Kconfig.tpl | 6 +++---
common/spl/Kconfig.vpl | 6 +++---
4 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/Kconfig b/Kconfig
index 1d600342685..10c3e49de0e 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,10 +550,10 @@ 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
- include SPL nor TPL, on platforms that use that functionality, they
- have separate options to restrict size.
+ Maximum size of the U-Boot image. The build system checks that the
+ actual image size does not exceed this value. This does not include
+ SPL nor TPL, on platforms that use that functionality, they have
+ separate options to restrict size.
config SYS_CUSTOM_LDSCRIPT
bool "Use a custom location for the U-Boot linker script"
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 97c7bfdad47..0cabc4e8019 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 checks that the
+ actual image size does not exceed 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..87aaf1132e6 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 checks that the
+ actual image size does not exceed 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..67ecd78a225 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 checks that the
+ actual image size does not exceed this value.
config VPL_SPI
bool "Support SPI drivers"
--
2.39.5
next prev parent reply other threads:[~2025-11-10 9:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-10 9:12 [PATCH v5 0/3] Harmonize image size checks Philip Oberfichtner
2025-11-10 9:12 ` [PATCH v5 1/3] Image size checks: Use HAS_SIZE_LIMIT consistently Philip Oberfichtner
2025-12-31 21:27 ` Marek Vasut
2026-01-07 17:34 ` Philip Oberfichtner
2025-11-10 9:12 ` Philip Oberfichtner [this message]
2025-12-31 21:20 ` [PATCH v5 2/3] Image size checks: Clarify help texts Marek Vasut
2025-11-10 9:12 ` [PATCH v5 3/3] Makefile: Deduplicate image size checks Philip Oberfichtner
2025-12-31 21:25 ` Marek Vasut
2025-12-01 18:30 ` [PATCH v5 0/3] Harmonize " Philip Oberfichtner
2025-12-01 18:37 ` Tom Rini
2025-12-01 18:38 ` Philip Oberfichtner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251110091256.2422534-3-pro@denx.de \
--to=pro@denx.de \
--cc=andre.przywara@arm.com \
--cc=anshuld@ti.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=malysagreg@gmail.com \
--cc=marek.vasut@mailbox.org \
--cc=nathan.morrison@timesys.com \
--cc=peng.fan@nxp.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=twoerner@gmail.com \
--cc=u-boot@lists.denx.de \
--cc=ye.li@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.