[PATCH v8 0/2] Remove usage of CMD_BOOTx from SPL code

Anshul Dalal anshuld at ti.com
Fri Oct 24 09:26:07 CEST 2025


Hi all,

We currently make use of CMD_BOOTI and CMD_BOOTZ in the SPL boot flow in
falcon mode, this isn't correct since all CMD_* configs are only meant
for U-Boot proper and not the SPL.

Therefore this patch set adds new LIB_BOOT[IMZ] configs that allow for
more granular selection of their respective compilation targets.

Additionally, this also allows us to more easily disable support for
raw images from secure falcon mode (SPL_OS_BOOT_SECURE) by doing the
following:

  config LIB_SPL_BOOTI
    ...
    depends on SPL_OS_BOOT && !SPL_OS_BOOT_SECURE
    ...

Regards,
Anshul

Signed-off-by: Anshul Dalal <anshuld at ti.com>
---
Changes in v8:
- Use LIB_$(PHASE_)LIB_BOOT[IMZ] instead
- Drop the patch migrating falcon configs
- Drop the patch for colibri_vf
- Link to v7: https://lore.kernel.org/u-boot/20250408141436.712387-1-anshuld@ti.com/

Changes in v7:
- Change SPL configs from SPL_HAS_* to SPL_*
- Change library symbol names from LIB_BOOTx to just BOOTx
- Add BOOTM for compiling boot.c
- Link to v6: https://lore.kernel.org/u-boot/20250403215522.1284502-1-anshuld@ti.com/

Changes in v6:
- Add LIB_BOOTx library symbols
- Update existing configs ensuring no change in size or build failure
- Link to v5: https://lore.kernel.org/all/20250314035505.4029331-1-anshuld@ti.com/

Changes in v5:
- Remove imply clause for CMD_BOOTZ instead add default y for SPL_HAS_BOOTZ
- Update commit message to reflect the changes
- Remove 'More info' link
- Link to v4: https://lore.kernel.org/u-boot/20250313032842.1189977-1-anshuld@ti.com/

Changes in v4:
- Don't set SPL_HAS_BOOTI for sandbox by default
- Updated prompts for SPL_HAS_BOOT[IZ]
- Removed check for SPL_HAS_FRAMEWORK from Makefile
- Link to v3: https://lore.kernel.org/u-boot/20250312124757.789013-1-anshuld@ti.com/

Changes in v3:
- Add imply clause for CMD_BOOTZ to enable SPL_HAS_BOOTZ
- Fix broken check for bootz_setup
- Link to v2: https://lore.kernel.org/u-boot/20250312094241.629707-1-anshuld@ti.com/

Changes in v2:
- Add SPL_HAS_BOOT[IZ] configs
- Link to v1: https://lore.kernel.org/u-boot/20250311093709.3372104-1-anshuld@ti.com/

GitHub CI: https://github.com/u-boot/u-boot/pull/757

---
Anshul Dalal (2):
      spl: remove usage of CMD_BOOTx from image parsing
      configs: disable SPL_BOOTZ to preserve spl size

 arch/arm/lib/Makefile                | 13 +++++++------
 arch/riscv/lib/Makefile              |  4 ++--
 boot/Kconfig                         | 18 ++++++++++++++++++
 cmd/Kconfig                          |  5 +++++
 common/spl/Kconfig                   | 16 ++++++++++++++++
 common/spl/spl.c                     |  5 +++--
 configs/imx28_xea_defconfig          |  1 +
 configs/imx6qdl_icore_mipi_defconfig |  1 +
 configs/imx6qdl_icore_mmc_defconfig  |  1 +
 configs/imx6qdl_icore_rqs_defconfig  |  1 +
 10 files changed, 55 insertions(+), 10 deletions(-)
---
base-commit: b10c055d4e1b5153a331a61ef82a5b01b5bb4c45
change-id: 20251023-fix_cmd_bootx-9ea1d69f08e3

Best regards,
-- 
Anshul Dalal <anshuld at ti.com>



More information about the U-Boot mailing list