]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fit: Rework SPL_LOAD_FIT_ADDRESS slightly
authorTom Rini <trini@konsulko.com>
Sun, 18 Jan 2026 19:56:10 +0000 (13:56 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 27 Jan 2026 22:19:11 +0000 (16:19 -0600)
commit272b8784faf33b0eded27ba78ad4251151ef357b
treeeaafdff167c6fcc0d3db0b6ac21fe14591e6a048
parentcfce859b16ffc43c6eb0afb6c49c95e1ec25f5f1
fit: Rework SPL_LOAD_FIT_ADDRESS slightly

Options which deal with memory locations and have a default value of 0x0
are dangerous, as that is often not a valid memory location. Rework
SPL_LOAD_FIT_ADDRESS as follows:
- Add SPL_HAS_LOAD_FIT_ADDRESS to guard prompting the question as the
  case of loading a FIT image does not strictly require setting an
  address and allows for a malloc()'d area to be used.
- For SPL_RAM_SUPPORT, select the new guard symbol if SPL_LOAD_FIT is
  enabled because in that case an address must be provided.
- Update defconfigs for these new changes. Largely this means some
  defconfigs need to enable SPL_HAS_LOAD_FIT_ADDRESS to maintain their
  current status. In the case of sandbox, we also need to set
  SPL_LOAD_FIT_ADDRESS to 0x0.

Signed-off-by: Tom Rini <trini@konsulko.com>
15 files changed:
boot/Kconfig
common/spl/Kconfig
common/spl/spl_fit.c
configs/am6254atl_evm_a53_defconfig
configs/am6254atl_evm_r5_defconfig
configs/imx8mp_dhsom.config
configs/k3_r5_falcon.config
configs/r8a779g0_whitehawk_defconfig
configs/r8a779g3_sparrowhawk_defconfig
configs/sandbox_noinst_defconfig
configs/sandbox_spl_defconfig
configs/sandbox_vpl_defconfig
configs/sifive_unleashed_defconfig
configs/sifive_unmatched_defconfig
configs/stm32mp_dhsom.config