ARM: OMAP2/3: Reorganize Makefile to add omap4 support
authorTony Lindgren <tony@atomide.com>
Mon, 25 May 2009 18:08:36 +0000 (11:08 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 25 May 2009 18:08:36 +0000 (11:08 -0700)
We don't necessarily want to compile in irq.o and sdrc.o for omap4.
Also, clock and prcm may not be implemented initially.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile

index c49d9bfa3abde7694e261115e40424f586f1152f..bf3827ae2c5fad028e631150648aeb38f18a5eea 100644 (file)
@@ -3,9 +3,14 @@
 #
 
 # Common support
-obj-y := irq.o id.o io.o sdrc.o control.o prcm.o clock.o mux.o \
-               devices.o serial.o gpmc.o timer-gp.o powerdomain.o \
-               clockdomain.o
+obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
+
+omap-2-3-common                                = irq.o sdrc.o
+prcm-common                            = prcm.o powerdomain.o
+clock-common                           = clock.o clockdomain.o
+
+obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common)
+obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common)
 
 obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o