summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2019-06-13 05:12:38 +0200
committerAnatolij Gustschin <agust@denx.de>2019-07-29 00:20:31 +0200
commit245b1029e1af8b2e71c6d7aebc7d68bdebd644d3 (patch)
tree00f04b86648d4def33e62fb413e89b8aabe76876 /tools/Makefile
parent85288ffee6826bf24b035a43866d8badfe107fc9 (diff)
downloadu-boot-245b1029e1af8b2e71c6d7aebc7d68bdebd644d3.tar.gz
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 <hs@denx.de>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 87d81a3d41..c7afe8a4b3 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -269,8 +269,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