[PATCH v10 0/2] Remove usage of CMD_BOOTx from SPL code
Anshul Dalal
anshuld at ti.com
Mon Oct 27 15:17:01 CET 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 v10:
- Remove unused CONFIG_XPL_BUILD check around $(PHASE_)LIB_BOOTM
- Link to v9: https://lore.kernel.org/r/20251025-fix_cmd_bootx-v9-0-dccf0aa0587f@ti.com
Changes in v9:
- Update commit message in the patch [1/2] to reflect updated symbol names
- Use CONFIG_LIB_$(PHASE_)_BOOTM in arm/lib/Makefile
- Link to v8: https://lore.kernel.org/r/20251024-fix_cmd_bootx-v8-0-230f70c5e5f8@ti.com
Changes in v8:
- Use CONFIG_$(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 | 10 ++++------
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, 52 insertions(+), 10 deletions(-)
---
base-commit: 9094482ca7576877b2bfaa57c8e73cfeb536f8b9
change-id: 20251023-fix_cmd_bootx-9ea1d69f08e3
Best regards,
--
Anshul Dalal <anshuld at ti.com>
More information about the U-Boot
mailing list