diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-06 08:52:34 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-16 18:26:50 -0500 |
commit | 24d8e1b37b90760a6c9867f37210aa4b1f2e8f63 (patch) | |
tree | c9193497e5ac61483354472520a01f872f0cb2f3 /boot/bootmeth_script.c | |
parent | 2175e76a51e53798ee4e19903b368a7e6c98356a (diff) | |
download | u-boot-24d8e1b37b90760a6c9867f37210aa4b1f2e8f63.tar.gz u-boot-24d8e1b37b90760a6c9867f37210aa4b1f2e8f63.tar.bz2 u-boot-24d8e1b37b90760a6c9867f37210aa4b1f2e8f63.zip |
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>
Diffstat (limited to 'boot/bootmeth_script.c')
-rw-r--r-- | boot/bootmeth_script.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boot/bootmeth_script.c b/boot/bootmeth_script.c index ba8e5d0438..c7061eb998 100644 --- a/boot/bootmeth_script.c +++ b/boot/bootmeth_script.c @@ -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; } |