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 <[email protected]>
---
 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

Reply via email to