| Message ID | 20251002154554.4129220-1-sjg@u-boot.org |
|---|---|
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759419974; bh=su8dR64hfwTZ7KtwEsLisC+zEzzGbFCB18QJ4NOCzhk=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=IbsqJIPZDwvESK2C44Y2kJq8d1h8rcutNmOjfeIldV24CX0w6ds6cx5737SoVaC2E g2uWPzFyAFZVeDFSBsjQisrc7dIaN6JdYOwy1BGM+uc1aKCck6A4GTtsLXsr3M4Dvi 7lOqX4+TGg++E4jSzaslU3dubvQJU87JfiU9l637ct5OKRGrokREaxy2JgOG8YNdms 88wxU52WoErLka/uWs4wsXB05gGg576FERjYJeiY0irntkpfiFHtz5UJHV1jYFBJng IAUchL2P7XBTCJ769o29qVwZ3My0N21ibZF/0H7Wzd+rjUcWsPFKloPwz6WVqY9NwY x19tTjpSlmgrw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9DF4767E4D for <u-boot-concept@u-boot.org>; Thu, 2 Oct 2025 09:46:14 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SRSShzzoOKka for <u-boot-concept@u-boot.org>; Thu, 2 Oct 2025 09:46:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759419974; bh=su8dR64hfwTZ7KtwEsLisC+zEzzGbFCB18QJ4NOCzhk=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=IbsqJIPZDwvESK2C44Y2kJq8d1h8rcutNmOjfeIldV24CX0w6ds6cx5737SoVaC2E g2uWPzFyAFZVeDFSBsjQisrc7dIaN6JdYOwy1BGM+uc1aKCck6A4GTtsLXsr3M4Dvi 7lOqX4+TGg++E4jSzaslU3dubvQJU87JfiU9l637ct5OKRGrokREaxy2JgOG8YNdms 88wxU52WoErLka/uWs4wsXB05gGg576FERjYJeiY0irntkpfiFHtz5UJHV1jYFBJng IAUchL2P7XBTCJ769o29qVwZ3My0N21ibZF/0H7Wzd+rjUcWsPFKloPwz6WVqY9NwY x19tTjpSlmgrw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8D2E367F15 for <u-boot-concept@u-boot.org>; Thu, 2 Oct 2025 09:46:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759419972; bh=OnlfoPGbwAm4JHaJc5A239pXA0sQOxhW0jh2xid+J2E=; h=From:To:Cc:Subject:Date:From; b=o1xzyE/taNeQ7yXqyohgAEePuRYuxDleQIb6hlnNomM0jXzDHQaNOuR0QN92wNO9t tEPK8k2UItjb3MCbUGx+w9G5MgIaN2srZu+qJYKrhGaqL++yydSzlkPjJdtx4a4sn3 n9egt5PKR1++tIhKFnvAIebS51Ef8CID6BJHW/6FHUHB8FxuR4inlAVcjg2FiyvCfe PwY52zRfveMi31bNZKUS/X+secHfZe2DTkOKJwLg0joao65hnJ/dBSYpWEwQmdE4+8 VmiWWnt0My1vPPJhShYahSsat/ruUeA7O+nxF7otZIsmxuKdsYfo8dudOke3BDyfYx zR45KsXV/lIAA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 824A667E4D; Thu, 2 Oct 2025 09:46:12 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id uMVIQXIbv8bZ; Thu, 2 Oct 2025 09:46:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759419968; bh=vBZwY8HzCVr2WEXgw/bC7zJW3MLUGf/WZTDWxfAJlGA=; h=From:To:Cc:Subject:Date:From; b=NOw4bRSxsVgq5fgqbr9agVG8rH2C/1lOLUtnPp/1LX4AWay8M5yw3AYDuul8yMtjW 3IanzJAN+EqFgdW7Sm5r0QoSID8XA3JkHPX4d2niLpVk+dTIVmLIMz9RsGZSkAYrJS sDFq56eC76OmIRwev3HGeT4BcIc2Bw/f+yrnhnzENAmVuybMRWsieyoMhiz4T8dZ2B /qbDGyQPysN/GS4XnJWqsWIF2+nwYF2LURCgCngIM1YzHGdkI8yi9diWDTE+kzURx1 kT1Iwl39hIX7FSb1CFV0s/ZILVLj3mhpHAZcciaNfpwH1Xl8XhcGIpRT99doGAedBS Juc7aH7LAkQzw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2985167D8D; Thu, 2 Oct 2025 09:46:08 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Thu, 2 Oct 2025 09:45:40 -0600 Message-ID: <20251002154554.4129220-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: QIVGW4FZAYHUMFWNWLBISCQ42KU4H5SX X-Message-ID-Hash: QIVGW4FZAYHUMFWNWLBISCQ42KU4H5SX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 0/9] video: Tidy up embedded graphical images List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/QIVGW4FZAYHUMFWNWLBISCQ42KU4H5SX/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
video: Tidy up embedded graphical images
|
|
Message
Simon Glass
Oct. 2, 2025, 3:45 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.
It also adds a more convenient 'write' subcommand.
Changes in v2:
- Add new patch to switch this command to use hex
- Split out docs into its own patch; use video: tag
- Pull out the docs into a separate patch
- Update test result for hex
- Correct confusing output text which should be 16 instead of 10
- Improve docs for row and col
- Use Canonical copyright
Simon Glass (9):
cmd: Update setcurs to use hex
doc: video: Add docs for video commands
video: Add tests for the video commands
video: Add video command with subcommands
video: Add a write subcommand
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 | 96 +++++++++++++-
doc/usage/cmd/lcdputs.rst | 58 +++++++++
doc/usage/cmd/setcurs.rst | 57 +++++++++
doc/usage/cmd/video.rst | 120 ++++++++++++++++++
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 | 50 ++++++++
16 files changed, 494 insertions(+), 47 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