blob: 279d3f3aad4d1a97cf5c9c277ab7fba0446afbbe [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001#
2# Makefile for the linux kernel.
3#
4
Magnus Dammefacfce2013-07-18 05:31:09 +09005ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/mach-shmobile/include
6
Magnus Dammc793c1b2010-02-05 11:14:49 +00007# Common objects
Magnus Damma360feb2013-07-18 05:30:59 +09008obj-y := timer.o console.o
Magnus Dammc793c1b2010-02-05 11:14:49 +00009
10# CPU objects
Magnus Damma360feb2013-07-18 05:30:59 +090011obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o intc-sh7372.o
12obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o intc-sh73a0.o
13obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o
Linus Torvaldsfa915152013-09-09 16:33:57 -070014obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o
Magnus Damma360feb2013-07-18 05:30:59 +090015obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o
Linus Torvaldsfa915152013-09-09 16:33:57 -070016obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o
Magnus Damma360feb2013-07-18 05:30:59 +090017obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o
Magnus Damm629cc702013-09-12 09:32:49 +090018obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o
Magnus Dammca1e6f22013-10-01 17:12:48 +090019obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o
Magnus Damma360feb2013-07-18 05:30:59 +090020obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
Magnus Damm0086df22013-09-19 05:11:11 +090021obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
Magnus Damma360feb2013-07-18 05:30:59 +090022
23# Clock objects
Magnus Damma360feb2013-07-18 05:30:59 +090024obj-y += clock.o
Magnus Damm25f55502014-03-13 08:36:17 +090025ifndef CONFIG_COMMON_CLK
Magnus Damma360feb2013-07-18 05:30:59 +090026obj-$(CONFIG_ARCH_SH7372) += clock-sh7372.o
27obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o
28obj-$(CONFIG_ARCH_R8A73A4) += clock-r8a73a4.o
29obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o
30obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o
31obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o
32obj-$(CONFIG_ARCH_R8A7790) += clock-r8a7790.o
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090033obj-$(CONFIG_ARCH_R8A7791) += clock-r8a7791.o
Magnus Damm0086df22013-09-19 05:11:11 +090034obj-$(CONFIG_ARCH_R7S72100) += clock-r7s72100.o
Magnus Damma360feb2013-07-18 05:30:59 +090035endif
Magnus Dammc793c1b2010-02-05 11:14:49 +000036
Magnus Damm8b438bc2014-06-06 16:20:10 +090037# CPU reset vector handling objects
38cpu-y := platsmp.o headsmp.o
39
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 Dammad09cb82013-08-29 08:22:07 +090044smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o platsmp-apmu.o
Magnus Damm23491992013-10-01 17:13:16 +090045smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o platsmp-apmu.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
Magnus Damm0173a742013-07-09 19:40:01 +090051obj-$(CONFIG_ARCH_SH7372) += pm-sh7372.o sleep-sh7372.o pm-rmobile.o
Bastian Hecht13baf882012-12-05 12:13:06 +000052obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o
Magnus Damm0173a742013-07-09 19:40:01 +090053obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o pm-rmobile.o
Magnus Damma6557eb2014-01-15 16:43:08 +090054obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o pm-rcar.o
Hisashi Nakamuraa48f1652014-01-15 21:25:49 +090055obj-$(CONFIG_ARCH_R8A7790) += pm-r8a7790.o pm-rcar.o
keita kobayashi5f6108b2014-05-30 14:18:48 +090056obj-$(CONFIG_ARCH_R8A7791) += pm-r8a7791.o pm-rcar.o
Magnus Dammc3dada12011-04-29 02:23:28 +090057
Magnus Damm8b438bc2014-06-06 16:20:10 +090058# IRQ objects
59obj-$(CONFIG_ARCH_SH7372) += entry-intc.o
60
Magnus Dammc793c1b2010-02-05 11:14:49 +000061# Board objects
Magnus Damm3ae970a2013-10-01 19:33:15 +090062ifdef CONFIG_ARCH_SHMOBILE_MULTI
Magnus Damm7d91c462013-11-07 08:31:25 +090063obj-$(CONFIG_MACH_GENMAI) += board-genmai-reference.o
Magnus Damm6d75bc62013-11-06 19:40:01 +090064obj-$(CONFIG_MACH_KOELSCH) += board-koelsch-reference.o
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010065obj-$(CONFIG_MACH_LAGER) += board-lager-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090066else
Magnus Damm78ded162013-03-29 17:00:02 +090067obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020068obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o
Kuninori Morimoto920adc72010-11-29 02:21:21 +000069obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070070obj-$(CONFIG_MACH_BOCKW) += board-bockw.o
Kuninori Morimotocfa66a82013-07-24 00:36:51 -070071obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o
Magnus Damma4ed4122013-09-19 05:11:29 +090072obj-$(CONFIG_MACH_GENMAI) += board-genmai.o
Magnus Dammf411fad2011-12-14 01:36:12 +090073obj-$(CONFIG_MACH_MARZEN) += board-marzen.o
Simon Horman73d6a692013-01-29 11:40:18 +090074obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o
Magnus Damm3cc828f2013-03-29 17:49:37 +090075obj-$(CONFIG_MACH_LAGER) += board-lager.o
Kuninori Morimoto4d22e562012-04-06 01:28:59 -070076obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o
Bastian Hecht76b92b42013-04-17 12:34:06 +020077obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o
Hisashi Nakamura1f52c652013-09-04 12:46:49 +090078obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o
Kuninori Morimoto9b93e242012-04-10 20:57:31 -070079obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o
Simon Hormanb8b82b22012-11-22 00:34:25 +090080obj-$(CONFIG_MACH_KZM9G_REFERENCE) += board-kzm9g-reference.o
Magnus Damm3ae970a2013-10-01 19:33:15 +090081endif
Magnus Damm09dd7de2010-12-14 16:15:35 +090082
83# Framework support
Magnus Damm1c51ed42010-12-14 16:56:55 +090084obj-$(CONFIG_SMP) += $(smp-y)