[Concept,0/6] video: Tidy up embedded graphical images

Message ID 20251001230537.3324058-1-sjg@u-boot.org
Headers
Series video: Tidy up embedded graphical images |

Message

Simon Glass Oct. 1, 2025, 11:05 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

U-Boot includes a few graphical images which are compiled in, such as
the logo and the BGRT logo used for EFI.

At present these are handled by a Makefile rule which looks for files
ending with '_logo.bmp'.

This series moves these into a new drivers/video/images directory and
puts them in a linker list, so it is possible to see what images are
available.

Adding a new image is simpler, just requiring the addition of the normal
'obj-y += file.bmp' rule.

This series also adds a new 'video' command which provides the existing
'setcurs' and 'lcdputs' as subcommands, along with documentation and
tests.


Simon Glass (6):
  video: doc: Add docs and tests for video commands
  video: Add video command with subcommands
  video: Support a linker list of images
  video: Move the logo into the new video-images directory
  acpi: bgrt: Move the BGRT image into the images directory
  video: Provide a command to list built-in images

 cmd/video.c                                   |  34 +++++++
 doc/usage/cmd/lcdputs.rst                     |  58 ++++++++++++
 doc/usage/cmd/setcurs.rst                     |  53 +++++++++++
 doc/usage/cmd/video.rst                       |  85 ++++++++++++++++++
 doc/usage/index.rst                           |   3 +
 drivers/video/Makefile                        |   3 +-
 drivers/video/images/Makefile                 |   9 ++
 .../video/images/bgrt.bmp                     | Bin
 .../{u_boot_logo.bmp => images/u_boot.bmp}    | Bin
 drivers/video/video-uclass.c                  |  20 ++---
 include/video.h                               |  46 ++++++++++
 include/video_image.h                         |  13 +++
 lib/acpi/Makefile                             |   2 -
 lib/acpi/acpi_extra.c                         |  22 +----
 scripts/Makefile.lib                          |  42 ++++++---
 test/dm/video.c                               |  41 +++++++++
 16 files changed, 387 insertions(+), 44 deletions(-)
 create mode 100644 doc/usage/cmd/lcdputs.rst
 create mode 100644 doc/usage/cmd/setcurs.rst
 create mode 100644 doc/usage/cmd/video.rst
 create mode 100644 drivers/video/images/Makefile
 rename lib/acpi/bgrt_image.bmp => drivers/video/images/bgrt.bmp (100%)
 rename drivers/video/{u_boot_logo.bmp => images/u_boot.bmp} (100%)
 create mode 100644 include/video_image.h