From: Khoronzhuk, Ivan Date: Wed, 9 Jul 2014 16:48:42 +0000 (+0300) Subject: ARM: keystone2: keystone_nav: make it dependent on keystone driver X-Git-Tag: v2014.10-rc1~38^2~11^2~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35c547c2bc59dd63cdf76f81abe26f68e9eaf7fb;p=oweals%2Fu-boot.git ARM: keystone2: keystone_nav: make it dependent on keystone driver This driver is needed in case if keystone driver is used. Currently only keystone_net driver uses it. So to avoid redundant code compilation make the keystone_nav dependent on keystone net driver. It also leads to compilation errors for boards that does't use it. Acked-by: Murali Karicheri Signed-off-by: Ivan Khoronzhuk --- diff --git a/arch/arm/cpu/armv7/keystone/Makefile b/arch/arm/cpu/armv7/keystone/Makefile index c4af252110..02ecf7e22c 100644 --- a/arch/arm/cpu/armv7/keystone/Makefile +++ b/arch/arm/cpu/armv7/keystone/Makefile @@ -10,7 +10,7 @@ obj-y += psc.o obj-y += clock.o obj-y += cmd_clock.o obj-y += cmd_mon.o -obj-y += keystone_nav.o +obj-$(CONFIG_DRIVER_TI_KEYSTONE_NET) += keystone_nav.o obj-y += msmc.o obj-$(CONFIG_SPL_BUILD) += spl.o obj-y += ddr3.o