]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Move bmp code to drivers/video
authorSimon Glass <sjg@chromium.org>
Thu, 14 Sep 2023 16:55:41 +0000 (10:55 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 Sep 2023 15:36:25 +0000 (11:36 -0400)
This relates to graphics which is only active when CONFIG_VIDEO is
enabled. Move it into that directory.

For most boards there is no harm in compiling it always, since it if not
used it will be dropped by the linker. But for the EFI app this is not
the case, so retain use of the BMP Kconfig.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/Makefile
drivers/video/Makefile
drivers/video/bmp.c [moved from common/bmp.c with 100% similarity]

index f5c3d90f06756b21f12e0a73bb679203fa11739c..0a3f75f2f1c8cdd8ad3d321187103376ec994bf7 100644 (file)
@@ -45,7 +45,6 @@ endif # !CONFIG_SPL_BUILD
 
 obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
 obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o
-obj-$(CONFIG_$(SPL_)BMP) += bmp.o
 
 ifdef CONFIG_SPL_BUILD
 ifdef CONFIG_SPL_DFU
index d13af9f3b19b2f786a4febb1a5b05542a8fbbee8..fdc293763242735fab8202d62a6fe0f31fe24ef6 100644 (file)
@@ -25,6 +25,7 @@ obj-$(CONFIG_PANEL_HX8238D) += hx8238d.o
 obj-$(CONFIG_$(SPL_TPL_)SIMPLE_PANEL) += simple_panel.o
 
 obj-$(CONFIG_VIDEO_LOGO) += u_boot_logo.o
+obj-$(CONFIG_$(SPL_TPL_)BMP) += bmp.o
 
 endif
 
similarity index 100%
rename from common/bmp.c
rename to drivers/video/bmp.c