xref: /linux/arch/arm/kernel/Makefile (revision 5290dc292915aaed6ae71ec3db5d4aa3285e7d51)
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
180c9030deSLeif Lindholmobj-y		:= elf.o entry-armv.o entry-common.o irq.o opcodes.o \
196905a658SMarc Zyngier		   process.o ptrace.o return_address.o sched_clock.o \
206905a658SMarc Zyngier		   setup.o signal.o stacktrace.o sys_arm.o time.o traps.o
211da177e4SLinus Torvalds
2273a65b3fSUwe Kleine-Königobj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o
2373a65b3fSUwe Kleine-König
24373b32abSRussell Kingobj-$(CONFIG_LEDS)		+= leds.o
25c5d6c770SAlexander Shishkinobj-$(CONFIG_OC_ETM)		+= etm.o
26e1689795SRobert Leeobj-$(CONFIG_CPU_IDLE)		+= cpuidle.o
27065909b9SRussell Kingobj-$(CONFIG_ISA_DMA_API)	+= dma.o
28dc2eb928SDave Martinobj-$(CONFIG_FIQ)		+= fiq.o fiqasm.o
291da177e4SLinus Torvaldsobj-$(CONFIG_MODULES)		+= armksyms.o module.o
301da177e4SLinus Torvaldsobj-$(CONFIG_ARTHUR)		+= arthur.o
311da177e4SLinus Torvaldsobj-$(CONFIG_ISA_DMA)		+= dma-isa.o
32863dab45SRussell Kingobj-$(CONFIG_PCI)		+= bios32.o isa.o
331fdb24e9SLinus Torvaldsobj-$(CONFIG_ARM_CPU_SUSPEND)	+= sleep.o suspend.o
3403b505eaSRussell Kingobj-$(CONFIG_SMP)		+= smp.o smp_tlb.o
35a8cbcd92SRussell Kingobj-$(CONFIG_HAVE_ARM_SCU)	+= smp_scu.o
36f32f4ce2SRussell Kingobj-$(CONFIG_HAVE_ARM_TWD)	+= smp_twd.o
37d82227cfSRabin Vincentobj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o insn.o
38d82227cfSRabin Vincentobj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o insn.o
3909f05d85SRabin Vincentobj-$(CONFIG_JUMP_LABEL)	+= jump_label.o insn.o patch.o
40c587e4a6SRichard Purdieobj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
41b21d55e9SRabin Vincentobj-$(CONFIG_KPROBES)		+= kprobes.o kprobes-common.o patch.o
4224371707SJon Medhurstifdef CONFIG_THUMB2_KERNEL
4324371707SJon Medhurstobj-$(CONFIG_KPROBES)		+= kprobes-thumb.o
4424371707SJon Medhurstelse
45691b2ff2SJon Medhurstobj-$(CONFIG_KPROBES)		+= kprobes-arm.o
4624371707SJon Medhurstendif
479eed1797SJon Medhurstobj-$(CONFIG_ARM_KPROBES_TEST)	+= test-kprobes.o
489eed1797SJon Medhursttest-kprobes-objs		:= kprobes-test.o
49c7054aadSJon Medhurstifdef CONFIG_THUMB2_KERNEL
50c7054aadSJon Medhursttest-kprobes-objs		+= kprobes-test-thumb.o
51c0cc6df1SJon Medhurstelse
52c0cc6df1SJon Medhursttest-kprobes-objs		+= kprobes-test-arm.o
53c7054aadSJon Medhurstendif
544cd9d6f7SRichard Purdieobj-$(CONFIG_ATAGS_PROC)	+= atags.o
55687ad019SNicolas Pitreobj-$(CONFIG_OABI_COMPAT)	+= sys_oabi-compat.o
56d7f864beSCatalin Marinasobj-$(CONFIG_ARM_THUMBEE)	+= thumbee.o
575cbad0ebSJason Wesselobj-$(CONFIG_KGDB)		+= kgdb.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
70afe4b25eSLennert Buytenhekobj-$(CONFIG_IWMMXT)		+= iwmmxt.o
710f4f0672SJamie Ilesobj-$(CONFIG_CPU_HAS_PMU)	+= pmu.o
721b8873a0SJamie Ilesobj-$(CONFIG_HW_PERF_EVENTS)	+= perf_event.o
731da177e4SLinus TorvaldsAFLAGS_iwmmxt.o			:= -Wa,-mcpu=iwmmxt
74c9018aabSVincent Guittotobj-$(CONFIG_ARM_CPU_TOPOLOGY)  += topology.o
751da177e4SLinus Torvalds
761da177e4SLinus Torvaldsifneq ($(CONFIG_ARCH_EBSA110),y)
771da177e4SLinus Torvalds  obj-y		+= io.o
781da177e4SLinus Torvaldsendif
791da177e4SLinus Torvalds
803b920cefSHyok S. Choihead-y			:= head$(MMUEXT).o
811da177e4SLinus Torvaldsobj-$(CONFIG_DEBUG_LL)	+= debug.o
8293fd03a8SCatalin Marinasobj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
831da177e4SLinus Torvalds
84*5290dc29SThomas Gleixnerextra-y := $(head-y) vmlinux.lds
85