blob: 89e463de44798fc3cc2ff18b9d39a4a409c1b734 [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 Damm8e8bfff2015-01-09 14:08:50 +01009obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o pm-sh73a0.o
Magnus Damma360feb2013-07-18 05:30:59 +090010obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o
Magnus Dammabebbc42014-08-25 12:04:01 +090011obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o pm-r8a7740.o
Magnus Damma360feb2013-07-18 05:30:59 +090012obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o
Magnus Damm1a950ca2014-08-25 12:03:52 +090013obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o
Gaku Inamia8caad62015-03-16 14:48:43 +090014obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o
15obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o
Ulrich Hecht5923abb22014-09-04 16:02:28 +020016obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o
Magnus Damma360feb2013-07-18 05:30:59 +090017obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
Magnus Damm0086df22013-09-19 05:11:11 +090018obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
Magnus Damma360feb2013-07-18 05:30:59 +090019
20# Clock objects
Magnus Damm25f55502014-03-13 08:36:17 +090021ifndef CONFIG_COMMON_CLK
Laurent Pinchartb6c461d2014-10-26 15:07:32 +020022obj-y += clock.o
Magnus Damma360feb2013-07-18 05:30:59 +090023obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o
Magnus Damma360feb2013-07-18 05:30:59 +090024obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o
25obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o
26obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o
Magnus Damma360feb2013-07-18 05:30:59 +090027endif
Magnus Dammc793c1b2010-02-05 11:14:49 +000028
Magnus Damm8b438bc2014-06-06 16:20:10 +090029# CPU reset vector handling objects
30cpu-y := platsmp.o headsmp.o
Magnus Damm0d918432014-08-25 12:03:43 +090031
32# Shared SoC family objects
33obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
Arnd Bergmanne3d16332014-11-11 16:36:50 +010034CFLAGS_setup-rcar-gen2.o += -march=armv7-a
Geert Uytterhoeven663fbb52015-03-09 20:50:40 +010035obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o
36obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o
Magnus Damm8b438bc2014-06-06 16:20:10 +090037
Magnus Damm1c51ed42010-12-14 16:56:55 +090038# SMP objects
Magnus Damm8b438bc2014-06-06 16:20:10 +090039smp-y := $(cpu-y)
Magnus Damm12eb8472013-07-31 16:07:21 +090040smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o
Magnus Damm0ca28942013-07-31 16:07:31 +090041smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o
Magnus Damm06f2c5d2014-06-06 16:21:03 +090042smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o
Magnus Dammbfe4cfa2014-06-06 16:21:19 +090043smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o
Magnus Damm0da60222013-07-31 16:07:40 +090044smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
Magnus Damm1c51ed42010-12-14 16:56:55 +090045
Magnus Dammc3dada12011-04-29 02:23:28 +090046# PM objects
47obj-$(CONFIG_SUSPEND) += suspend.o
Gaku Inami06e32c92014-06-03 21:02:45 +090048obj-$(CONFIG_CPU_FREQ) += cpufreq.o
Magnus Damm1a950ca2014-08-25 12:03:52 +090049obj-$(CONFIG_PM_RCAR) += pm-rcar.o
Magnus Dammabebbc42014-08-25 12:04:01 +090050obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
Gaku Inamia8caad62015-03-16 14:48:43 +090051obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o
Magnus Dammc3dada12011-04-29 02:23:28 +090052
Magnus Dammc793c1b2010-02-05 11:14:49 +000053# Board objects
Magnus Damm3ae970a2013-10-01 19:33:15 +090054ifdef CONFIG_ARCH_SHMOBILE_MULTI
Simon Horman5016c812014-05-15 20:32:05 +090055obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090056else
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070057obj-$(CONFIG_MACH_BOCKW) += board-bockw.o
Kuninori Morimotocfa66a82013-07-24 00:36:51 -070058obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o
Magnus Dammf411fad2011-12-14 01:36:12 +090059obj-$(CONFIG_MACH_MARZEN) += board-marzen.o
Kuninori Morimoto4d22e562012-04-06 01:28:59 -070060obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o
Magnus Damm8e8bfff2015-01-09 14:08:50 +010061obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o intc-sh73a0.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090062endif
Magnus Damm09dd7de2010-12-14 16:15:35 +090063
64# Framework support
Magnus Damm1c51ed42010-12-14 16:56:55 +090065obj-$(CONFIG_SMP) += $(smp-y)