bootstd: Allow reading a logo for the OS

Some operating systems provide a logo in bmp format. Read this in if
present so it can be displayed in the menu.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-01-16 18:26:50 -05:00
committed by Tom Rini
parent 2175e76a51
commit 24d8e1b37b
6 changed files with 95 additions and 13 deletions
+4
View File
@@ -109,6 +109,10 @@ static int script_read_bootflow(struct udevice *dev, struct bootflow *bflow)
if (ret)
return log_msg_ret("inf", ret);
ret = bootmeth_alloc_other(bflow, "boot.bmp", &bflow->logo,
&bflow->logo_size);
/* ignore error */
return 0;
}