x86: Move the bootm state for zimage into cmd/

Rather than holding the state in the implementation code, move it to the
command code. The state is now passed to the implementation functions
and can there (with future work) be pass in from bootstd, without going
through the commands.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-03-05 17:25:00 -07:00
committed by Tom Rini
parent 00cfb598e7
commit 4e36b1739b
5 changed files with 73 additions and 57 deletions

View File

@@ -380,7 +380,10 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc,
bflow = std->cur_bootflow;
if (IS_ENABLED(CONFIG_X86) && x86_setup) {
zimage_dump(bflow->x86_setup, false);
struct bootm_info bmi;
bootm_init(&bmi);
zimage_dump(&bmi, bflow->x86_setup, false);
return 0;
}