blob: d53996e6da970d8d451ad1a6baab8b450c8dfaab [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001#
2# Makefile for the linux kernel.
3#
4
5# Common objects
Magnus Damma360feb2013-07-18 05:30:59 +09006obj-y := timer.o console.o
Magnus Dammc793c1b2010-02-05 11:14:49 +00007
8# CPU objects
Magnus Dammabebbc42014-08-25 12:04:01 +09009obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o intc-sh7372.o pm-sh7372.o
10obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o intc-sh73a0.o pm-sh73a0.o
Magnus Damma360feb2013-07-18 05:30:59 +090011obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o
Magnus Dammabebbc42014-08-25 12:04:01 +090012obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o pm-r8a7740.o
Magnus Damma360feb2013-07-18 05:30:59 +090013obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o
Magnus Damm1a950ca2014-08-25 12:03:52 +090014obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o
15obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o pm-r8a7790.o
16obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o pm-r8a7791.o
Ulrich Hecht5923abb22014-09-04 16:02:28 +020017obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o
Magnus Damma360feb2013-07-18 05:30:59 +090018obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
Magnus Damm0086df22013-09-19 05:11:11 +090019obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
Magnus Damma360feb2013-07-18 05:30:59 +090020
21# Clock objects
Magnus Damm25f55502014-03-13 08:36:17 +090022ifndef CONFIG_COMMON_CLK
Laurent Pinchartb6c461d2014-10-26 15:07:32 +020023obj-y += clock.o
Magnus Damma360feb2013-07-18 05:30:59 +090024obj-$(CONFIG_ARCH_SH7372) += clock-sh7372.o
25obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o
26obj-$(CONFIG_ARCH_R8A73A4) += clock-r8a73a4.o
27obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o
28obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o
29obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o
Magnus Damma360feb2013-07-18 05:30:59 +090030endif
Magnus Dammc793c1b2010-02-05 11:14:49 +000031
Magnus Damm8b438bc2014-06-06 16:20:10 +090032# CPU reset vector handling objects
33cpu-y := platsmp.o headsmp.o
Magnus Damm0d918432014-08-25 12:03:43 +090034
35# Shared SoC family objects
36obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
Arnd Bergmanne3d16332014-11-11 16:36:50 +010037CFLAGS_setup-rcar-gen2.o += -march=armv7-a
Magnus Damm8b438bc2014-06-06 16:20:10 +090038
Magnus Damm1c51ed42010-12-14 16:56:55 +090039# SMP objects
Magnus Damm8b438bc2014-06-06 16:20:10 +090040smp-y := $(cpu-y)
Magnus Damm12eb8472013-07-31 16:07:21 +090041smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o
Magnus Damm0ca28942013-07-31 16:07:31 +090042smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o
Magnus Damm06f2c5d2014-06-06 16:21:03 +090043smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o
Magnus Dammbfe4cfa2014-06-06 16:21:19 +090044smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o
Magnus Damm0da60222013-07-31 16:07:40 +090045smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
Magnus Damm1c51ed42010-12-14 16:56:55 +090046
Magnus Dammc3dada12011-04-29 02:23:28 +090047# PM objects
48obj-$(CONFIG_SUSPEND) += suspend.o
Magnus Damm0af48172011-04-29 02:36:07 +090049obj-$(CONFIG_CPU_IDLE) += cpuidle.o
Gaku Inami06e32c92014-06-03 21:02:45 +090050obj-$(CONFIG_CPU_FREQ) += cpufreq.o
Magnus Damm1a950ca2014-08-25 12:03:52 +090051obj-$(CONFIG_PM_RCAR) += pm-rcar.o
Magnus Dammabebbc42014-08-25 12:04:01 +090052obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
Magnus Dammc3dada12011-04-29 02:23:28 +090053
Magnus Dammabebbc42014-08-25 12:04:01 +090054# special sh7372 handling for IRQ objects and low level sleep code
55obj-$(CONFIG_ARCH_SH7372) += entry-intc.o sleep-sh7372.o
Magnus Dammf2aaf662010-02-05 11:15:07 +000056
Magnus Damm2b7eda62010-02-05 11:14:58 +000057# Board objects
Magnus Damm3ae970a2013-10-01 19:33:15 +090058ifdef CONFIG_ARCH_SHMOBILE_MULTI
Simon Horman5016c812014-05-15 20:32:05 +090059obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090060else
Magnus Damm78ded162013-03-29 17:00:02 +090061obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020062obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o
Kuninori Morimoto920adc72010-11-29 02:21:21 +000063obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070064obj-$(CONFIG_MACH_BOCKW) += board-bockw.o
Kuninori Morimotocfa66a82013-07-24 00:36:51 -070065obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o
Magnus Dammf411fad2011-12-14 01:36:12 +090066obj-$(CONFIG_MACH_MARZEN) += board-marzen.o
Kuninori Morimoto4d22e562012-04-06 01:28:59 -070067obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o
Kuninori Morimoto9b93e242012-04-10 20:57:31 -070068obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o
Simon Hormanb8b82b22012-11-22 00:34:25 +090069obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090070endif
Magnus Damm09dd7de2010-12-14 16:15:35 +090071
72# Framework support
Magnus Damm1c51ed42010-12-14 16:56:55 +090073obj-$(CONFIG_SMP) += $(smp-y)