summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-14 10:55:41 -0600
committerTom Rini <trini@konsulko.com>2023-09-19 11:36:25 -0400
commit8168359160525c57e54e294a00abb8db43a8cee1 (patch)
tree42e91735e5132b587e73c7d1900d5914742be7fe
parentd761eeabcdd127b3a26ee140e9a38b45d20fbd1b (diff)
video: Move bmp code to drivers/video
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>
-rw-r--r--common/Makefile1
-rw-r--r--drivers/video/Makefile1
-rw-r--r--drivers/video/bmp.c (renamed from common/bmp.c)0
3 files changed, 1 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index f5c3d90f067..0a3f75f2f1c 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -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
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index d13af9f3b19..fdc29376324 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -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
diff --git a/common/bmp.c b/drivers/video/bmp.c
index bab6fa7265a..bab6fa7265a 100644
--- a/common/bmp.c
+++ b/drivers/video/bmp.c