[PATCH v3 0/5] Simplify image size checks
Philip Oberfichtner
pro at denx.de
Wed Sep 3 12:56:48 CEST 2025
This patch series aims at simplifying and harmonizing image size checks,
which are currently represented by the following Kconfig symbols:
CONFIG_HAS_BOARD_SIZE_LIMIT
CONFIG_BOARD_SIZE_LIMIT
CONFIG_SPL_SIZE_LIMIT
CONFIG_TPL_SIZE_LIMIT
CONFIG_VPL_SIZE_LIMIT
After this series, we would have
- Less code duplication in the toplevel Makefile
- Consistent logic for all the different CONFIGS
- All related options in one place
Changes in v3:
V3 is a complete remake of the series. In the discussions on V2 we
decided to follow the approach of using CONFIG_HAS_XXX_SIZE_LIMIT
instead of my initial proposal, which was to disable a size check
by setting its limit to zero.
Changes in v2:
- Rebase on current master
- Rebase on my pending mips patch series (linked above)
- Incorporated Heinrich's Review
Philip Oberfichtner (5):
Image size checks: Move all configs in one place
Image size checks: Use HAS_SIZE_LIMIT consistently
Image size checks: Use consistent help texts
Image size checks: Deduplicate Makefile
Image size checks: Simplify SPL_SIZE_LIMIT logic
Kconfig | 73 ++++++++++++++++++++++-
Makefile | 45 ++++----------
arch/arm/mach-socfpga/Kconfig | 5 +-
arch/mips/mach-mtmips/Kconfig | 5 +-
arch/x86/cpu/apollolake/Kconfig | 5 +-
common/spl/Kconfig | 38 ------------
common/spl/Kconfig.tpl | 7 ---
common/spl/Kconfig.vpl | 7 ---
configs/am62ax_evm_r5_defconfig | 1 +
configs/am62px_evm_r5_defconfig | 1 +
configs/am62x_beagleplay_a53_defconfig | 1 +
configs/am62x_beagleplay_r5_defconfig | 1 +
configs/am62x_evm_a53_defconfig | 1 +
configs/am62x_evm_a53_ethboot_defconfig | 1 +
configs/am62x_evm_r5_defconfig | 1 +
configs/am64x_evm_r5_defconfig | 1 +
configs/am65x_evm_r5_defconfig | 1 +
configs/am65x_evm_r5_usbmsc_defconfig | 1 +
configs/am67a_beagley_ai_r5_defconfig | 1 +
configs/brcp150_defconfig | 1 +
configs/brcp170_defconfig | 1 +
configs/brcp1_1r_defconfig | 1 +
configs/brcp1_1r_switch_defconfig | 1 +
configs/brcp1_2r_defconfig | 1 +
configs/brsmarc2_defconfig | 1 +
configs/evb-ast2600_defconfig | 1 +
configs/evb-rk3288_defconfig | 1 +
configs/firefly-rk3288_defconfig | 1 +
configs/ibex-ast2700_defconfig | 1 +
configs/ibm-sbp1_defconfig | 1 +
configs/imx28_btt3_defconfig | 1 +
configs/imx28_xea_defconfig | 1 +
configs/imx6q_bosch_acc_defconfig | 1 +
configs/imxrt1020-evk_defconfig | 1 +
configs/imxrt1050-evk_defconfig | 1 +
configs/imxrt1050-evk_fspi_defconfig | 1 +
configs/imxrt1170-evk_defconfig | 1 +
configs/j721e_beagleboneai64_r5_defconfig | 1 +
configs/j721e_evm_r5_defconfig | 1 +
configs/j721s2_evm_r5_defconfig | 1 +
configs/j722s_evm_r5_defconfig | 1 +
configs/j784s4_evm_r5_defconfig | 1 +
configs/kontron_sl28_defconfig | 1 +
configs/phycore_am62ax_r5_defconfig | 1 +
configs/phycore_am62x_a53_defconfig | 1 +
configs/phycore_am62x_r5_defconfig | 1 +
configs/phycore_am64x_r5_defconfig | 1 +
configs/stm32746g-eval_spl_defconfig | 1 +
configs/stm32f746-disco_spl_defconfig | 1 +
configs/stm32f769-disco_spl_defconfig | 1 +
configs/tinker-rk3288_defconfig | 1 +
configs/tinker-s-rk3288_defconfig | 1 +
configs/verdin-am62_a53_defconfig | 1 +
configs/verdin-am62_r5_defconfig | 1 +
configs/verdin-am62p_a53_defconfig | 1 +
configs/verdin-am62p_r5_defconfig | 1 +
configs/xilinx_mbv32_defconfig | 1 +
configs/xilinx_mbv32_smode_defconfig | 1 +
configs/xilinx_mbv64_defconfig | 1 +
configs/xilinx_mbv64_smode_defconfig | 1 +
configs/xilinx_zynqmp_kria_defconfig | 1 +
configs/xilinx_zynqmp_virt_defconfig | 1 +
tools/spl_size_limit.c | 4 +-
63 files changed, 151 insertions(+), 92 deletions(-)
--
2.39.5
More information about the U-Boot
mailing list