[PATCH v4 05/15] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL

Nikhil M Jain n-jain1 at ti.com
Wed Mar 29 14:01:09 CEST 2023


To enable TIDSS driver only at SPL stage add rule to compile the TIDSS
video driver, for SPL stage only if CONFIG_SPL_VIDEO_TIDSS is defined.

CONFIG_$(SPL_)VIDEO_TIDSS will compile tidss_drv, at SPL stage only if
CONFIG_SPL_VIDEO_TIDSS is defined and at u-boot proper if
CONFIG_VIDEO_TIDSS is defined.

Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
V4:
- Added Reviewed-by tag

V3:
- No change

V2:
- No change

 drivers/video/Makefile       | 1 +
 drivers/video/tidss/Makefile | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 2374b240c2..fcf256d80a 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -76,4 +76,5 @@ obj-$(CONFIG_SPL_SIMPLE_PANEL) += simple_panel.o
 obj-$(CONFIG_SPL_CONSOLE_NORMAL) += console_normal.o
 obj-$(CONFIG_SPL_VIDEO) += video-uclass.o vidconsole-uclass.o
 obj-$(CONFIG_SPL_VIDEO) += video_bmp.o
+obj-$(CONFIG_SPL_VIDEO_TIDSS) += tidss/
 endif
diff --git a/drivers/video/tidss/Makefile b/drivers/video/tidss/Makefile
index f4f8c6c470..a29cee2a41 100644
--- a/drivers/video/tidss/Makefile
+++ b/drivers/video/tidss/Makefile
@@ -9,4 +9,4 @@
 # Author: Tomi Valkeinen <tomi.valkeinen at ti.com>
 
 
-obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o
+obj-${CONFIG_$(SPL_)VIDEO_TIDSS} = tidss_drv.o
-- 
2.34.1



More information about the U-Boot mailing list