Skip to contentSkip to conversation

ARM: mach-shmobile: Makefile update for old clock code

PATCH New Magnus Damm 1 participant 1 message Mar 25, 2010

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/6 ARM: mach-shmobile: Makefile update for old clock code

From: Magnus Damm <[email protected]>

Update the main SH-Mobile ARM Makefile to only build the old clock framework code when CONFIG_COMMON_CLKDEV is set. This variable is always set at this point.

This change allows us to easily move over to the clock framework code from the SH architecture. In the future we can enable the new code by selecting a new Kconfig variable and deselecting CONFIG_COMMON_CLKDEV in one atomic commit.

---

 arch/arm/mach-shmobile/Makefile |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
arch/arm/mach-shmobile/Makefile +6 -3
@@ -6,9 +6,12 @@
 obj-y				:= timer.o console.o
 
 # CPU objects
-obj-$(CONFIG_ARCH_SH7367)	+= setup-sh7367.o clock-sh7367.o intc-sh7367.o
-obj-$(CONFIG_ARCH_SH7377)	+= setup-sh7377.o clock-sh7367.o intc-sh7377.o
-obj-$(CONFIG_ARCH_SH7372)	+= setup-sh7372.o clock-sh7367.o intc-sh7372.o
+obj-$(CONFIG_ARCH_SH7367)	+= setup-sh7367.o intc-sh7367.o
+obj-$(CONFIG_ARCH_SH7377)	+= setup-sh7377.o intc-sh7377.o
+obj-$(CONFIG_ARCH_SH7372)	+= setup-sh7372.o intc-sh7372.o
+
+# Clock framework
+obj-$(CONFIG_COMMON_CLKDEV)	+= clock-sh7367.o
 
 # Pinmux setup
 pfc-$(CONFIG_ARCH_SH7367)	:= pfc-sh7367.o