diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-06 17:52:34 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-17 02:26:50 +0300 |
commit | 24d8e1b37b90760a6c9867f37210aa4b1f2e8f63 (patch) | |
tree | c9193497e5ac61483354472520a01f872f0cb2f3 /cmd | |
parent | 2175e76a51e53798ee4e19903b368a7e6c98356a (diff) | |
download | u-boot-24d8e1b37b90760a6c9867f37210aa4b1f2e8f63.tar.xz |
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 'cmd')
-rw-r--r-- | cmd/bootflow.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c index 6b8ac8c850..495ef85f25 100644 --- a/cmd/bootflow.c +++ b/cmd/bootflow.c @@ -338,6 +338,12 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc, printf("Buffer: %lx\n", (ulong)map_to_sysmem(bflow->buf)); printf("Size: %x (%d bytes)\n", bflow->size, bflow->size); printf("OS: %s\n", bflow->os_name ? bflow->os_name : "(none)"); + printf("Logo: %s\n", bflow->logo ? + simple_xtoa((ulong)map_to_sysmem(bflow->logo)) : "(none)"); + if (bflow->logo) { + printf("Logo size: %x (%d bytes)\n", bflow->logo_size, + bflow->logo_size); + } printf("Error: %d\n", bflow->err); if (dump && bflow->buf) { /* Set some sort of maximum on the size */ |