blob: 476de30798d7290b8920b95991816c09a646b080 [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
Geert Uytterhoeven9a986392015-06-17 11:31:20 +02009obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o
Magnus Damma360feb2013-07-18 05:30:59 +090010obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o
Geert Uytterhoeven44d88c72015-06-17 11:31:24 +020011obj-$(CONFIG_ARCH_R8A7740) += setup-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 Hechtec60d952015-06-01 16:22:54 +020016obj-$(CONFIG_ARCH_R8A7793) += setup-r8a7793.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_R8A7778) += clock-r8a7778.o
Magnus Damma360feb2013-07-18 05:30:59 +090025endif
Magnus Dammc793c1b2010-02-05 11:14:49 +000026
Magnus Damm8b438bc2014-06-06 16:20:10 +090027# CPU reset vector handling objects
28cpu-y := platsmp.o headsmp.o
Magnus Damm0d918432014-08-25 12:03:43 +090029
30# Shared SoC family objects
31obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
Arnd Bergmanne3d16332014-11-11 16:36:50 +010032CFLAGS_setup-rcar-gen2.o += -march=armv7-a
Geert Uytterhoeven663fbb52015-03-09 20:50:40 +010033obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o
34obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o
Ulrich Hecht765b5002015-06-01 16:22:57 +020035obj-$(CONFIG_ARCH_R8A7793) += regulator-quirk-rcar-gen2.o
Magnus Damm8b438bc2014-06-06 16:20:10 +090036
Magnus Damm1c51ed42010-12-14 16:56:55 +090037# SMP objects
Magnus Damm8b438bc2014-06-06 16:20:10 +090038smp-y := $(cpu-y)
Magnus Damm12eb8472013-07-31 16:07:21 +090039smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o
Magnus Damm0ca28942013-07-31 16:07:31 +090040smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o
Magnus Damm06f2c5d2014-06-06 16:21:03 +090041smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o
Magnus Dammbfe4cfa2014-06-06 16:21:19 +090042smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o
Magnus Damm0da60222013-07-31 16:07:40 +090043smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
Magnus Damm1c51ed42010-12-14 16:56:55 +090044
Magnus Dammc3dada12011-04-29 02:23:28 +090045# PM objects
46obj-$(CONFIG_SUSPEND) += suspend.o
Gaku Inami06e32c92014-06-03 21:02:45 +090047obj-$(CONFIG_CPU_FREQ) += cpufreq.o
Magnus Damm1a950ca2014-08-25 12:03:52 +090048obj-$(CONFIG_PM_RCAR) += pm-rcar.o
Magnus Dammabebbc42014-08-25 12:04:01 +090049obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
Gaku Inamia8caad62015-03-16 14:48:43 +090050obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o
Magnus Dammc3dada12011-04-29 02:23:28 +090051
Magnus Dammc793c1b2010-02-05 11:14:49 +000052# Board objects
Magnus Damm26f9e032015-07-13 15:15:12 +090053ifndef CONFIG_ARCH_SHMOBILE_MULTI
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070054obj-$(CONFIG_MACH_BOCKW) += board-bockw.o
Kuninori Morimotocfa66a82013-07-24 00:36:51 -070055obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o
Olof Johanssonfc293f52015-08-11 14:43:05 +020056endif
Magnus Damm09dd7de2010-12-14 16:15:35 +090057
58# Framework support
Magnus Damm1c51ed42010-12-14 16:56:55 +090059obj-$(CONFIG_SMP) += $(smp-y)