All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Simplify image size checks
@ 2025-09-03 10:56 Philip Oberfichtner
  2025-09-03 10:56 ` [PATCH v3 1/5] Image size checks: Move all configs in one place Philip Oberfichtner
                   ` (4 more replies)
  0 siblings, 5 replies; 34+ messages in thread
From: Philip Oberfichtner @ 2025-09-03 10:56 UTC (permalink / raw)
  To: u-boot
  Cc: Philip Oberfichtner, Andre Przywara, Anshul Dalal, Dario Binacchi,
	Greg Malysa, Heinrich Schuchardt, Ilias Apalodimas,
	Jerome Forissier, Marek Vasut, Nathan Barrett-Morrison,
	Oliver Gaskell, Paul Barker, Peng Fan, Simon Glass, Tom Rini,
	Trevor Woerner, Ye Li

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


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2025-10-10 14:28 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 10:56 [PATCH v3 0/5] Simplify image size checks Philip Oberfichtner
2025-09-03 10:56 ` [PATCH v3 1/5] Image size checks: Move all configs in one place Philip Oberfichtner
2025-09-03 12:50   ` Marek Vasut
2025-09-04  8:12     ` Philip Oberfichtner
2025-09-04 13:54       ` Marek Vasut
2025-09-05  8:13         ` Philip Oberfichtner
2025-09-05 14:22           ` Tom Rini
2025-10-10 14:19             ` Philip Oberfichtner
2025-09-03 10:56 ` [PATCH v3 2/5] Image size checks: Use HAS_SIZE_LIMIT consistently Philip Oberfichtner
2025-09-03 12:51   ` Marek Vasut
2025-09-04  8:19     ` Philip Oberfichtner
2025-09-04 13:56       ` Marek Vasut
2025-09-05  8:15         ` Philip Oberfichtner
2025-09-05 14:19   ` Tom Rini
2025-09-30  8:33     ` Philip Oberfichtner
2025-09-30 14:45       ` Tom Rini
2025-10-02  8:55         ` Philip Oberfichtner
2025-10-02 21:19           ` Tom Rini
2025-10-10 14:28             ` Philip Oberfichtner
2025-09-03 10:56 ` [PATCH v3 3/5] Image size checks: Use consistent help texts Philip Oberfichtner
2025-09-03 12:54   ` Marek Vasut
2025-09-04  8:20     ` Philip Oberfichtner
2025-09-03 10:56 ` [PATCH v3 4/5] Image size checks: Deduplicate Makefile Philip Oberfichtner
2025-09-03 13:02   ` Marek Vasut
2025-09-04  8:30     ` Philip Oberfichtner
2025-09-04 15:03       ` Marek Vasut
2025-09-05  8:22         ` Philip Oberfichtner
2025-09-03 10:56 ` [PATCH v3 5/5] Image size checks: Simplify SPL_SIZE_LIMIT logic Philip Oberfichtner
2025-09-03 12:08   ` Heinrich Schuchardt
2025-09-03 12:59   ` Marek Vasut
2025-09-04  8:23     ` Philip Oberfichtner
2025-09-04  8:30       ` Heinrich Schuchardt
2025-09-04 15:02       ` Marek Vasut
2025-09-05  8:19         ` Philip Oberfichtner

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.