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