[PATCH 4/9] drivers: video: Makefile: Compile video driver files at SPL

Nikhil M Jain n-jain1 at ti.com
Tue Mar 14 05:50:14 CET 2023


To enable splash screen at SPL we need to add video driver at SPL stage.
To support video driver and splash display function compile
video_uclass.c, video_console.c and video_bmp.c, thus add rules to
compile these files at SPL stage when CONFIG_SPL_VIDEO is defined.

Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>
---
 drivers/video/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index cdb7d9a54d..4e2d34e675 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -68,3 +68,8 @@ obj-$(CONFIG_VIDEO_ZYNQMP_DPSUB) += zynqmp_dpsub.o
 
 obj-y += bridge/
 obj-y += sunxi/
+
+ifdef CONFIG_SPL_BUILD
+obj-$(CONFIG_$(SPL_)VIDEO) += video-uclass.o vidconsole-uclass.o
+obj-$(CONFIG_$(SPL_)VIDEO) += video_bmp.o
+endif
-- 
2.34.1



More information about the U-Boot mailing list