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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user