aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/rockchip
diff options
context:
space:
mode:
authoreric.gao@rock-chips.com2017-04-17 22:24:24 +0800
committerSimon Glass2017-05-10 13:37:21 -0600
commitda10dd1a723e27291d8f30effada2b0a47a43f12 (patch)
treed103af3b96aafc80ac943196065c27394b9a8d7e /drivers/video/rockchip
parentb98f0a3d974f08d13b5d7af36e3669c6378207cc (diff)
rockchip: video: Makefile: Modify Makefile for rockchip video driver
Modify Makefile for rockchip video driver according to Kconfig, so that source code will not be compiled if not needed. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/rockchip')
-rw-r--r--drivers/video/rockchip/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/rockchip/Makefile b/drivers/video/rockchip/Makefile
index 755350b9341..3bb0519a8b0 100644
--- a/drivers/video/rockchip/Makefile
+++ b/drivers/video/rockchip/Makefile
@@ -5,4 +5,9 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-y += rk_edp.o rk_hdmi.o rk_vop.o rk_lvds.o ../dw_hdmi.o
+ifdef CONFIG_VIDEO_ROCKCHIP
+obj-y += rk_vop.o
+obj-$(CONFIG_DISPLAY_ROCKCHIP_EDP) += rk_edp.o
+obj-$(CONFIG_DISPLAY_ROCKCHIP_LVDS) += rk_lvds.o
+obj-$(CONFIG_DISPLAY_ROCKCHIP_HDMI) += rk_hdmi.o ../dw_hdmi.o
+endif