Message ID | 1450953502-6181-2-git-send-email-mugunthanvnm@ti.com |
---|---|
State | Accepted |
Delegated to: | Simon Glass |
Headers | show |
On Thu, Dec 24, 2015 at 04:08:04PM +0530, Mugunthan V N wrote: > 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>
On 4 January 2016 at 12:57, Tom Rini <trini@konsulko.com> wrote: > On Thu, Dec 24, 2015 at 04:08:04PM +0530, Mugunthan V N wrote: > >> 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> > > -- > Tom Applied to u-boot-dm, thanks!
diff --git a/arch/arm/cpu/armv7/omap-common/Makefile b/arch/arm/cpu/armv7/omap-common/Makefile index 464a5d1..87a7ac0 100644 --- a/arch/arm/cpu/armv7/omap-common/Makefile +++ b/arch/arm/cpu/armv7/omap-common/Makefile @@ -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),)
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> --- arch/arm/cpu/armv7/omap-common/Makefile | 6 ++++++ 1 file changed, 6 insertions(+)