diff mbox series

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

Message ID 20230314045019.5671-5-n-jain1@ti.com
State Changes Requested
Delegated to: Simon Glass
Headers show
Series Enable splash screen | expand

Commit Message

Nikhil Jain March 14, 2023, 4:50 a.m. UTC
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@ti.com>
---
 drivers/video/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Simon Glass March 27, 2023, 8:23 a.m. UTC | #1
On Tue, 14 Mar 2023 at 17:50, Nikhil M Jain <n-jain1@ti.com> wrote:
>
> 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@ti.com>
> ---
>  drivers/video/Makefile | 5 +++++
>  1 file changed, 5 insertions(+)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # qemu-x86_64
diff mbox series

Patch

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