]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL
authorNikhil M Jain <n-jain1@ti.com>
Thu, 20 Apr 2023 12:11:03 +0000 (17:41 +0530)
committerAnatolij Gustschin <agust@denx.de>
Mon, 24 Apr 2023 19:37:45 +0000 (21:37 +0200)
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS
video driver.

CONFIG_$(SPL_)VIDEO_TIDSS will compile tidss_drv, at SPL 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@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/Makefile
drivers/video/tidss/Makefile

index 868e834c9eaa3a9b544e483e5007eda41608b94f..a609e35d22e8bbdb5074536c96a87c9ad387dcf6 100644 (file)
@@ -32,7 +32,7 @@ obj-${CONFIG_EXYNOS_FB} += exynos/
 obj-${CONFIG_VIDEO_ROCKCHIP} += rockchip/
 obj-${CONFIG_VIDEO_STM32} += stm32/
 obj-${CONFIG_VIDEO_TEGRA124} += tegra124/
-obj-${CONFIG_VIDEO_TIDSS} += tidss/
+obj-${CONFIG_$(SPL_)VIDEO_TIDSS} += tidss/
 obj-y += ti/
 
 obj-$(CONFIG_ATMEL_HLCD) += atmel_hlcdfb.o
index f4f8c6c470ac4e9ba2a41cdc510ca6014f378046..a29cee2a414a046918d6dcd050eb0609998d1978 100644 (file)
@@ -9,4 +9,4 @@
 # Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
 
 
-obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o
+obj-${CONFIG_$(SPL_)VIDEO_TIDSS} = tidss_drv.o