[PATCH v4 2/3] Image size checks: Clarify help texts
Philip Oberfichtner
pro at denx.de
Wed Oct 15 03:23:19 CEST 2025
Adapt help texts for CONFIG_XXX_SIZE_LIMITs to their new logic.
Signed-off-by: Philip Oberfichtner <pro at denx.de>
---
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
More information about the U-Boot
mailing list