Skip to content

Remove usage of CMD_BOOTx from SPL code

Anshul Dalal u-boot 9 versions – In review

Get series with b4
b4 am [email protected] change-id 20251023-fix_cmd_bootx-9ea1d69f08e3

Versions newest first

  1. v10 Latest2 patches 2 repliesIn review
  2. v92 patches 2 repliesSuperseded
  3. v82 patches 1 replySuperseded inferred link
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v74 patches2 repliesSuperseded inferred link
v64 patches1 replySuperseded inferred link
v51 patch5 repliesSuperseded inferred link
v41 patch3 repliesSuperseded inferred link
v31 patch3 repliesSuperseded inferred link
v21 patch1 replySuperseded

Changes in v10 from the cover letter

- Remove unused CONFIG_XPL_BUILD check around $(PHASE_)LIB_BOOTM
- Link to v9: https://lore.kernel.org/r/[email protected]

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spl: remove usage of CMD_BOOTx from image parsingarch/arm/lib/Makefile arch/riscv/lib/Makefile boot/Kconfig +3 more+48 -101 reply
2/2configs: disable SPL_BOOTZ to preserve spl sizeconfigs/imx28_xea_defconfig configs/imx6qdl_icore_mipi_defconfig configs/imx6qdl_icore_mmc_defconfig +1 more+4 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchTom Rini
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/2] Remove usage of CMD_BOOTx from SPL code

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

---
Changes in v10:
- Remove unused CONFIG_XPL_BUILD check around $(PHASE_)LIB_BOOTM
- Link to v9: https://lore.kernel.org/r/[email protected]

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/[email protected]

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/[email protected]/

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/[email protected]/

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/[email protected]/

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/[email protected]/

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/[email protected]/

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/[email protected]/

Changes in v2:
- Add SPL_HAS_BOOT[IZ] configs
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/

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,

Signature · 1 line
Anshul Dalal <[email protected]>