Commit a360feb9e9e6cc36d61e683c03dc13974663298b
Committed by
Simon Horman
1 parent
66a5cab04d
ARM: shmobile: Only build clocks when COMMON_CLK=n
Move shared clock.c file and per-SoC clock-xxx.c files to only build when CONFIG_COMMON_CLK != y. The regular ARCH_SHMOBILE case with legacy SH clock framework will build just as before with this patch applied, however the case when COMMON_CLK=y will exclude all the clock files. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Showing 1 changed file with 22 additions and 9 deletions Side-by-side Diff
arch/arm/mach-shmobile/Makefile
... | ... | @@ -3,17 +3,30 @@ |
3 | 3 | # |
4 | 4 | |
5 | 5 | # Common objects |
6 | -obj-y := timer.o console.o clock.o | |
6 | +obj-y := timer.o console.o | |
7 | 7 | |
8 | 8 | # CPU objects |
9 | -obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o clock-sh7372.o intc-sh7372.o | |
10 | -obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o clock-sh73a0.o intc-sh73a0.o | |
11 | -obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o clock-r8a73a4.o | |
12 | -obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o clock-r8a7740.o intc-r8a7740.o | |
13 | -obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o clock-r8a7778.o | |
14 | -obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o clock-r8a7779.o intc-r8a7779.o | |
15 | -obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o clock-r8a7790.o | |
16 | -obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o clock-emev2.o | |
9 | +obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o intc-sh7372.o | |
10 | +obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o intc-sh73a0.o | |
11 | +obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o | |
12 | +obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o intc-r8a7740.o | |
13 | +obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o | |
14 | +obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o intc-r8a7779.o | |
15 | +obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o | |
16 | +obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o | |
17 | + | |
18 | +# Clock objects | |
19 | +ifndef CONFIG_COMMON_CLK | |
20 | +obj-y += clock.o | |
21 | +obj-$(CONFIG_ARCH_SH7372) += clock-sh7372.o | |
22 | +obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o | |
23 | +obj-$(CONFIG_ARCH_R8A73A4) += clock-r8a73a4.o | |
24 | +obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o | |
25 | +obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o | |
26 | +obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o | |
27 | +obj-$(CONFIG_ARCH_R8A7790) += clock-r8a7790.o | |
28 | +obj-$(CONFIG_ARCH_EMEV2) += clock-emev2.o | |
29 | +endif | |
17 | 30 | |
18 | 31 | # SMP objects |
19 | 32 | smp-y := platsmp.o headsmp.o |