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