blob: b55cac0e5b2b21546f2d467e0d5db1c36ed6dded [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
30obj-$(CONFIG_ARCH_R8A7790) += clock-r8a7790.o
Magnus Damma360feb2013-07-18 05:30:59 +090031endif
Magnus Dammc793c1b2010-02-05 11:14:49 +000032
Magnus Damm8b438bc2014-06-06 16:20:10 +090033# CPU reset vector handling objects
34cpu-y := platsmp.o headsmp.o
Magnus Damm0d918432014-08-25 12:03:43 +090035
36# Shared SoC family objects
37obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
Arnd Bergmanne3d16332014-11-11 16:36:50 +010038CFLAGS_setup-rcar-gen2.o += -march=armv7-a
Magnus Damm8b438bc2014-06-06 16:20:10 +090039
Magnus Damm1c51ed42010-12-14 16:56:55 +090040# SMP objects
Magnus Damm8b438bc2014-06-06 16:20:10 +090041smp-y := $(cpu-y)
Magnus Damm12eb8472013-07-31 16:07:21 +090042smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o
Magnus Damm0ca28942013-07-31 16:07:31 +090043smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o
Magnus Damm06f2c5d2014-06-06 16:21:03 +090044smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o
Magnus Dammbfe4cfa2014-06-06 16:21:19 +090045smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o
Magnus Damm0da60222013-07-31 16:07:40 +090046smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
Magnus Damm1c51ed42010-12-14 16:56:55 +090047
Magnus Dammc3dada12011-04-29 02:23:28 +090048# PM objects
49obj-$(CONFIG_SUSPEND) += suspend.o
Magnus Damm0af48172011-04-29 02:36:07 +090050obj-$(CONFIG_CPU_IDLE) += cpuidle.o
Gaku Inami06e32c92014-06-03 21:02:45 +090051obj-$(CONFIG_CPU_FREQ) += cpufreq.o
Magnus Damm1a950ca2014-08-25 12:03:52 +090052obj-$(CONFIG_PM_RCAR) += pm-rcar.o
Magnus Dammabebbc42014-08-25 12:04:01 +090053obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
Magnus Dammc3dada12011-04-29 02:23:28 +090054
Magnus Dammabebbc42014-08-25 12:04:01 +090055# special sh7372 handling for IRQ objects and low level sleep code
56obj-$(CONFIG_ARCH_SH7372) += entry-intc.o sleep-sh7372.o
Magnus Dammf2aaf662010-02-05 11:15:07 +000057
Magnus Damm2b7eda62010-02-05 11:14:58 +000058# Board objects
Magnus Damm3ae970a2013-10-01 19:33:15 +090059ifdef CONFIG_ARCH_SHMOBILE_MULTI
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010060obj-$(CONFIG_MACH_LAGER) += board-lager-reference.o
Simon Horman5016c812014-05-15 20:32:05 +090061obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090062else
Magnus Damm78ded162013-03-29 17:00:02 +090063obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020064obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o
Kuninori Morimoto920adc72010-11-29 02:21:21 +000065obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070066obj-$(CONFIG_MACH_BOCKW) += board-bockw.o
Kuninori Morimotocfa66a82013-07-24 00:36:51 -070067obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o
Magnus Dammf411fad2011-12-14 01:36:12 +090068obj-$(CONFIG_MACH_MARZEN) += board-marzen.o
Magnus Damm3cc828f2013-03-29 17:49:37 +090069obj-$(CONFIG_MACH_LAGER) += board-lager.o
Kuninori Morimoto4d22e562012-04-06 01:28:59 -070070obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o
Kuninori Morimoto9b93e242012-04-10 20:57:31 -070071obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o
Simon Hormanb8b82b22012-11-22 00:34:25 +090072obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090073endif
Magnus Damm09dd7de2010-12-14 16:15:35 +090074
75# Framework support
Magnus Damm1c51ed42010-12-14 16:56:55 +090076obj-$(CONFIG_SMP) += $(smp-y)