xref: /linux/arch/arm/kernel/Makefile (revision 49863894db3ed7bd41541b1c17733273966cea71)
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 \
1938ff87f7SStephen Boyd		   process.o ptrace.o return_address.o \
206905a658SMarc Zyngier		   setup.o signal.o stacktrace.o sys_arm.o time.o traps.o
211da177e4SLinus Torvalds
22bd51e2f5SNicolas Pitreobj-$(CONFIG_ATAGS)		+= atags_parse.o
23bd51e2f5SNicolas Pitreobj-$(CONFIG_ATAGS_PROC)	+= atags_proc.o
24aa783b6fSNicolas Pitreobj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o
2573a65b3fSUwe Kleine-König
264477ca45SUwe Kleine-Königifeq ($(CONFIG_CPU_V7M),y)
276a7d2c62SUwe Kleine-Königobj-y		+= entry-v7m.o v7m.o
284477ca45SUwe Kleine-Königelse
294477ca45SUwe Kleine-Königobj-y		+= entry-armv.o
304477ca45SUwe Kleine-Königendif
314477ca45SUwe Kleine-König
32c5d6c770SAlexander Shishkinobj-$(CONFIG_OC_ETM)		+= etm.o
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_ARTHUR)		+= arthur.o
381da177e4SLinus Torvaldsobj-$(CONFIG_ISA_DMA)		+= dma-isa.o
39863dab45SRussell Kingobj-$(CONFIG_PCI)		+= bios32.o isa.o
401fdb24e9SLinus Torvaldsobj-$(CONFIG_ARM_CPU_SUSPEND)	+= sleep.o suspend.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
48d82227cfSRabin Vincentobj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o insn.o
49d82227cfSRabin Vincentobj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o insn.o
5009f05d85SRabin Vincentobj-$(CONFIG_JUMP_LABEL)	+= jump_label.o insn.o patch.o
51c587e4a6SRichard Purdieobj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
52b21d55e9SRabin Vincentobj-$(CONFIG_KPROBES)		+= kprobes.o kprobes-common.o patch.o
5324371707SJon Medhurstifdef CONFIG_THUMB2_KERNEL
5424371707SJon Medhurstobj-$(CONFIG_KPROBES)		+= kprobes-thumb.o
5524371707SJon Medhurstelse
56691b2ff2SJon Medhurstobj-$(CONFIG_KPROBES)		+= kprobes-arm.o
5724371707SJon Medhurstendif
589eed1797SJon Medhurstobj-$(CONFIG_ARM_KPROBES_TEST)	+= test-kprobes.o
599eed1797SJon Medhursttest-kprobes-objs		:= kprobes-test.o
60c7054aadSJon Medhurstifdef CONFIG_THUMB2_KERNEL
61c7054aadSJon Medhursttest-kprobes-objs		+= kprobes-test-thumb.o
62c0cc6df1SJon Medhurstelse
63c0cc6df1SJon Medhursttest-kprobes-objs		+= kprobes-test-arm.o
64c7054aadSJon Medhurstendif
65687ad019SNicolas Pitreobj-$(CONFIG_OABI_COMPAT)	+= sys_oabi-compat.o
66d7f864beSCatalin Marinasobj-$(CONFIG_ARM_THUMBEE)	+= thumbee.o
675cbad0ebSJason Wesselobj-$(CONFIG_KGDB)		+= kgdb.o
68adf8b37bSCatalin Marinasobj-$(CONFIG_ARM_UNWIND)	+= unwind.o
69bc581770SLinus Walleijobj-$(CONFIG_HAVE_TCM)		+= tcm.o
709eb8f674SGrant Likelyobj-$(CONFIG_OF)		+= devtree.o
7167742c81SMika Westerbergobj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
7264d2dc38SLeif Lindholmobj-$(CONFIG_SWP_EMULATE)	+= swp_emulate.o
73283a1b92SRussell KingCFLAGS_swp_emulate.o		:= -Wa,-march=armv7-a
7419852e59SWill Deaconobj-$(CONFIG_HAVE_HW_BREAKPOINT)	+= hw_breakpoint.o
751da177e4SLinus Torvalds
76afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSCALE)	+= xscale-cp0.o
77afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSC3)		+= xscale-cp0.o
7840305a58SEric Miaoobj-$(CONFIG_CPU_MOHAWK)	+= xscale-cp0.o
79ef6c8445SHaojian Zhuangobj-$(CONFIG_CPU_PJ4)		+= pj4-cp0.o
80afe4b25eSLennert Buytenhekobj-$(CONFIG_IWMMXT)		+= iwmmxt.o
81*49863894SWill Deaconobj-$(CONFIG_PERF_EVENTS)	+= perf_regs.o
825505b206SWill Deaconobj-$(CONFIG_HW_PERF_EVENTS)	+= perf_event.o perf_event_cpu.o
831da177e4SLinus TorvaldsAFLAGS_iwmmxt.o			:= -Wa,-mcpu=iwmmxt
84c9018aabSVincent Guittotobj-$(CONFIG_ARM_CPU_TOPOLOGY)  += topology.o
851da177e4SLinus Torvalds
861da177e4SLinus Torvaldsifneq ($(CONFIG_ARCH_EBSA110),y)
871da177e4SLinus Torvalds  obj-y		+= io.o
881da177e4SLinus Torvaldsendif
891da177e4SLinus Torvalds
903b920cefSHyok S. Choihead-y			:= head$(MMUEXT).o
911da177e4SLinus Torvaldsobj-$(CONFIG_DEBUG_LL)	+= debug.o
9293fd03a8SCatalin Marinasobj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
931da177e4SLinus Torvalds
9480c59dafSDave Martinobj-$(CONFIG_ARM_VIRT_EXT)	+= hyp-stub.o
9505774088SStefano Stabelliniifeq ($(CONFIG_ARM_PSCI),y)
9605774088SStefano Stabelliniobj-y				+= psci.o
9705774088SStefano Stabelliniobj-$(CONFIG_SMP)		+= psci_smp.o
9805774088SStefano Stabelliniendif
9980c59dafSDave Martin
1005290dc29SThomas Gleixnerextra-y := $(head-y) vmlinux.lds
101