xref: /linux/arch/arm/kernel/Makefile (revision 29ba0f37f1578db268ac805c117365923b9a7663)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the linux kernel.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
551b563fcSSam RavnborgCPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
69d4f13e5SRussell KingAFLAGS_head.o        := -DTEXT_OFFSET=$(TEXT_OFFSET)
71da177e4SLinus Torvalds
8376cfa87STim Birdifdef CONFIG_FUNCTION_TRACER
9014c257cSAbhishek SagarCFLAGS_REMOVE_ftrace.o = -pg
10d82227cfSRabin VincentCFLAGS_REMOVE_insn.o = -pg
11b21d55e9SRabin VincentCFLAGS_REMOVE_patch.o = -pg
12014c257cSAbhishek Sagarendif
13014c257cSAbhishek Sagar
144bf1fa5aSUwe Kleine-KönigCFLAGS_REMOVE_return_address.o = -pg
154bf1fa5aSUwe Kleine-König
161da177e4SLinus Torvalds# Object file lists.
171da177e4SLinus Torvalds
184477ca45SUwe Kleine-Königobj-y		:= elf.o entry-common.o irq.o opcodes.o \
19045ab94eSRussell King		   process.o ptrace.o reboot.o return_address.o \
20574e2b51SVictor Kamensky		   setup.o signal.o sigreturn_codes.o \
21574e2b51SVictor Kamensky		   stacktrace.o sys_arm.o time.o traps.o
221da177e4SLinus Torvalds
23bd51e2f5SNicolas Pitreobj-$(CONFIG_ATAGS)		+= atags_parse.o
24bd51e2f5SNicolas Pitreobj-$(CONFIG_ATAGS_PROC)	+= atags_proc.o
25aa783b6fSNicolas Pitreobj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o
2673a65b3fSUwe Kleine-König
274477ca45SUwe Kleine-Königifeq ($(CONFIG_CPU_V7M),y)
286a7d2c62SUwe Kleine-Königobj-y		+= entry-v7m.o v7m.o
294477ca45SUwe Kleine-Königelse
304477ca45SUwe Kleine-Königobj-y		+= entry-armv.o
314477ca45SUwe Kleine-Königendif
324477ca45SUwe Kleine-König
33e1689795SRobert Leeobj-$(CONFIG_CPU_IDLE)		+= cpuidle.o
34065909b9SRussell Kingobj-$(CONFIG_ISA_DMA_API)	+= dma.o
35dc2eb928SDave Martinobj-$(CONFIG_FIQ)		+= fiq.o fiqasm.o
361da177e4SLinus Torvaldsobj-$(CONFIG_MODULES)		+= armksyms.o module.o
371da177e4SLinus Torvaldsobj-$(CONFIG_ISA_DMA)		+= dma-isa.o
38863dab45SRussell Kingobj-$(CONFIG_PCI)		+= bios32.o isa.o
391fdb24e9SLinus Torvaldsobj-$(CONFIG_ARM_CPU_SUSPEND)	+= sleep.o suspend.o
40603fb42aSSebastian Capellaobj-$(CONFIG_HIBERNATION)	+= hibernate.o
418006b4d1SJonathan Austinobj-$(CONFIG_SMP)		+= smp.o
428006b4d1SJonathan Austinifdef CONFIG_MMU
438006b4d1SJonathan Austinobj-$(CONFIG_SMP)		+= smp_tlb.o
448006b4d1SJonathan Austinendif
45a8cbcd92SRussell Kingobj-$(CONFIG_HAVE_ARM_SCU)	+= smp_scu.o
46f32f4ce2SRussell Kingobj-$(CONFIG_HAVE_ARM_TWD)	+= smp_twd.o
47022c03a2SMarc Zyngierobj-$(CONFIG_ARM_ARCH_TIMER)	+= arch_timer.o
4882112379SRussell Kingobj-$(CONFIG_FUNCTION_TRACER)	+= entry-ftrace.o
49d82227cfSRabin Vincentobj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o insn.o
50d82227cfSRabin Vincentobj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o insn.o
5109f05d85SRabin Vincentobj-$(CONFIG_JUMP_LABEL)	+= jump_label.o insn.o patch.o
52c587e4a6SRichard Purdieobj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
53fca08f32SWang Nan# Main staffs in KPROBES are in arch/arm/probes/ .
540dc016dbSWang Nanobj-$(CONFIG_KPROBES)		+= patch.o insn.o
55687ad019SNicolas Pitreobj-$(CONFIG_OABI_COMPAT)	+= sys_oabi-compat.o
56d7f864beSCatalin Marinasobj-$(CONFIG_ARM_THUMBEE)	+= thumbee.o
5723a4e405SDoug Andersonobj-$(CONFIG_KGDB)		+= kgdb.o patch.o
58adf8b37bSCatalin Marinasobj-$(CONFIG_ARM_UNWIND)	+= unwind.o
59bc581770SLinus Walleijobj-$(CONFIG_HAVE_TCM)		+= tcm.o
609eb8f674SGrant Likelyobj-$(CONFIG_OF)		+= devtree.o
6167742c81SMika Westerbergobj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
6264d2dc38SLeif Lindholmobj-$(CONFIG_SWP_EMULATE)	+= swp_emulate.o
63283a1b92SRussell KingCFLAGS_swp_emulate.o		:= -Wa,-march=armv7-a
6419852e59SWill Deaconobj-$(CONFIG_HAVE_HW_BREAKPOINT)	+= hw_breakpoint.o
651da177e4SLinus Torvalds
66afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSCALE)	+= xscale-cp0.o
67afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSC3)		+= xscale-cp0.o
6840305a58SEric Miaoobj-$(CONFIG_CPU_MOHAWK)	+= xscale-cp0.o
69ef6c8445SHaojian Zhuangobj-$(CONFIG_CPU_PJ4)		+= pj4-cp0.o
70d93003e8SSebastian Hesselbarthobj-$(CONFIG_CPU_PJ4B)		+= pj4-cp0.o
71afe4b25eSLennert Buytenhekobj-$(CONFIG_IWMMXT)		+= iwmmxt.o
72d39976f0SMark Rutlandobj-$(CONFIG_PERF_EVENTS)	+= perf_regs.o perf_callchain.o
731fe115b3SMark Rutlandobj-$(CONFIG_HW_PERF_EVENTS)	+= perf_event.o perf_event_cpu.o \
74*29ba0f37SMark Rutland				   perf_event_xscale.o perf_event_v6.o \
75*29ba0f37SMark Rutland				   perf_event_v7.o
7613d1b957SArd BiesheuvelCFLAGS_pj4-cp0.o		:= -marm
771da177e4SLinus TorvaldsAFLAGS_iwmmxt.o			:= -Wa,-mcpu=iwmmxt
78c9018aabSVincent Guittotobj-$(CONFIG_ARM_CPU_TOPOLOGY)  += topology.o
79e5b61debSNathan Lynchobj-$(CONFIG_VDSO)		+= vdso.o
801da177e4SLinus Torvalds
811da177e4SLinus Torvaldsifneq ($(CONFIG_ARCH_EBSA110),y)
821da177e4SLinus Torvalds  obj-y		+= io.o
831da177e4SLinus Torvaldsendif
841da177e4SLinus Torvalds
853b920cefSHyok S. Choihead-y			:= head$(MMUEXT).o
861da177e4SLinus Torvaldsobj-$(CONFIG_DEBUG_LL)	+= debug.o
8793fd03a8SCatalin Marinasobj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
881da177e4SLinus Torvalds
8980c59dafSDave Martinobj-$(CONFIG_ARM_VIRT_EXT)	+= hyp-stub.o
9005774088SStefano Stabelliniifeq ($(CONFIG_ARM_PSCI),y)
91c0978773SMark Rutlandobj-y				+= psci.o psci-call.o
9205774088SStefano Stabelliniobj-$(CONFIG_SMP)		+= psci_smp.o
9305774088SStefano Stabelliniendif
9480c59dafSDave Martin
955290dc29SThomas Gleixnerextra-y := $(head-y) vmlinux.lds
96