diff mbox

[U-Boot,v3,2/2] rockchip: video: Makefile: Modify Makefile for rockchip video driver

Message ID 1492439064-26462-3-git-send-email-eric.gao@rock-chips.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

eric.gao@rock-chips.com April 17, 2017, 2:24 p.m. UTC
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>
---

 drivers/video/rockchip/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Simon Glass April 18, 2017, 3:59 a.m. UTC | #1
On 17 April 2017 at 08:24, Eric Gao <eric.gao@rock-chips.com> wrote:
> 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>
> ---
>
> drivers/video/rockchip/Makefile | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass April 20, 2017, 9:05 p.m. UTC | #2
On 17 April 2017 at 21:59, Simon Glass <sjg@chromium.org> wrote:
> On 17 April 2017 at 08:24, Eric Gao <eric.gao@rock-chips.com> wrote:
>> 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>
>> ---
>>
>> drivers/video/rockchip/Makefile | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip/next, thanks!
diff mbox

Patch

diff --git a/drivers/video/rockchip/Makefile b/drivers/video/rockchip/Makefile
index 755350b..3bb0519 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