summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2025-03-05 17:25:07 -0700
committerTom Rini <[email protected]>2025-03-18 13:12:15 -0600
commit7f10a7fe126dce5644d933af693eda40497d7755 (patch)
tree9f99c8d97212878791569275f9d66389ebca206c /boot
parent600bc21da54a300f2825a5e3088719b1ffd5ee53 (diff)
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 <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/boot/bootm.c b/boot/bootm.c
index 854ac7ec738..c719a50ef9a 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -633,11 +633,11 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress)
load_buf = map_sysmem(load, 0);
image_buf = map_sysmem(os.image_start, image_len);
err = image_decomp(os.comp, load, os.image_start, os.type,
- load_buf, image_buf, image_len,
- CONFIG_SYS_BOOTM_LEN, &load_end);
+ load_buf, image_buf, image_len, bootm_len(),
+ &load_end);
if (err) {
- err = handle_decomp_error(os.comp, load_end - load,
- CONFIG_SYS_BOOTM_LEN, err);
+ err = handle_decomp_error(os.comp, load_end - load, bootm_len(),
+ err);
bootstage_error(BOOTSTAGE_ID_DECOMP_IMAGE);
return err;
}