bmp_logo: support CONFIG_DM_VIDEO
PATCH 1/1 bmp_logo: support CONFIG_DM_VIDEO
in case of bmp_logo, the video_bmp driver is used for drawing a bmp logo. This driver supports only "full" bmp data. Adding a logo with the bmp_logo tool to u-boot binary adds currently only real data and drops the bmp header.
This patch adds now the full bmp data to the u-boot binary, so video_bmp driver works with the logo embedded into u-boot.
Fixed also some checkpatch error poping up with this patch.
Signed-off-by Heiko Schocher <[email protected]>
---
tools/Makefile | 6 ++++++ tools/bmp_logo.c | 42 +++++++++++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 11 deletions(-)
tools/Makefile +6 -0
@@ -266,8 +266,14 @@ __build: $(LOGO-y) $(LOGO_H): $(obj)/bmp_logo $(LOGO_BMP) $(obj)/bmp_logo --gen-info $(LOGO_BMP) > $@ +ifeq ($(CONFIG_DM_VIDEO),y) +$(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP) + $(obj)/bmp_logo --gen-bmp $(LOGO_BMP) > $@ +else $(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP) $(obj)/bmp_logo --gen-data $(LOGO_BMP) > $@ +#endif +endif # Let clean descend into subdirs subdir- += env
tools/bmp_logo.c +31 -11
94 lines not on this page · raw message
Signature · 1 line
2.21.0
PATCH 1/1 bmp_logo: support CONFIG_DM_VIDEO
On Thu, 13 Jun 2019 05:12:38 +0200
Heiko Schocher hs at denx.de wrote:
...
Quoted 3 lines
tools/Makefile | 6 ++++++ tools/bmp_logo.c | 42 +++++++++++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 11 deletions(-)
Applied to u-boot-video/master, thanks!
--
Anatolij