bootm: Allow building bootm.c without CONFIG_SYS_BOOTM_LEN
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:07 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000 (13:12 -0600)
commit7f10a7fe126dce5644d933af693eda40497d7755
tree9f99c8d97212878791569275f9d66389ebca206c
parent600bc21da54a300f2825a5e3088719b1ffd5ee53
bootm: Allow building bootm.c without CONFIG_SYS_BOOTM_LEN

This code cannot be compiled by boards which don't have this option. Add
an accessor in the header file to avoid another #ifdef

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
boot/bootm.c
include/bootm.h