]> git.sur5r.net Git - u-boot/commitdiff
arm: omap-common: do not build timer when CONFIG_TIMER defined
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 24 Dec 2015 10:38:04 +0000 (16:08 +0530)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:21 +0000 (19:06 -0700)
To prepare timer driver to DM/DT conversion do not build the
exiting timer driver when CONFIG_TIMER is defined. But since
omap's SPL doesn't support DM yet so built timer driver only for
SPL build when CONFIG_TIMER is defined.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv7/omap-common/Makefile

index 464a5d1d732a7540f1cbea19ab285397c5cc781b..87a7ac03f92021f50bd9252e6d087820c1cbc6b4 100644 (file)
@@ -6,7 +6,13 @@
 #
 
 obj-y  := reset.o
+ifeq ($(CONFIG_TIMER),)
 obj-y  += timer.o
+else
+ifdef CONFIG_SPL_BUILD
+obj-y  += timer.o
+endif
+endif
 obj-y  += utils.o
 
 ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)