boot: Add an OS-size field in bootm_info

The size of the loaded OS file can be useful when decompressing, or to
check that the. FIT image matches its size. Add an os_size field for
this in struct bootm_info so it can be recorded.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-11 07:11:51 -06:00
parent 3bef4dbecd
commit d37a89fda7
2 changed files with 5 additions and 2 deletions

View File

@@ -1276,9 +1276,10 @@ int boot_run(struct bootm_info *bmi, const char *cmd, int extra_states)
states |= BOOTM_STATE_RAMDISK;
states |= extra_states;
log_debug("cmd '%s' states %x addr_img '%s' conf_ramdisk '%s' conf_fdt '%s' images %p\n",
log_debug("cmd '%s' states %x addr_img '%s' conf_ramdisk '%s' "
"conf_fdt '%s' os_size %lx images %p\n",
cmd, states, bmi->addr_img, bmi->conf_ramdisk, bmi->conf_fdt,
bmi->images);
bmi->os_size, bmi->images);
return bootm_run_states(bmi, states);
}