blob: 22b0f1e255f0936542c8f72afd1b13aea3a83a75 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux kernel.
3#
4
Sam Ravnborg51b563f2009-09-20 12:28:22 +02005CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
6AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Tim Bird376cfa82010-10-09 22:24:38 +05308ifdef CONFIG_FUNCTION_TRACER
Abhishek Sagar014c2572008-05-31 14:23:50 +05309CFLAGS_REMOVE_ftrace.o = -pg
Rabin Vincentd82227c2012-02-18 17:50:06 +010010CFLAGS_REMOVE_insn.o = -pg
Rabin Vincentb21d55e2012-02-18 17:50:51 +010011CFLAGS_REMOVE_patch.o = -pg
Abhishek Sagar014c2572008-05-31 14:23:50 +053012endif
13
Uwe Kleine-König4bf1fa52009-07-21 09:56:27 +010014CFLAGS_REMOVE_return_address.o = -pg
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016# Object file lists.
17
Leif Lindholm0c9030d2011-12-12 19:31:55 +010018obj-y := elf.o entry-armv.o entry-common.o irq.o opcodes.o \
Marc Zyngier6905a652012-01-18 15:05:11 +000019 process.o ptrace.o return_address.o sched_clock.o \
20 setup.o signal.o stacktrace.o sys_arm.o time.o traps.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
Uwe Kleine-König73a65b32010-01-19 10:13:14 +010022obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o
23
Russell King373b32a2010-01-10 17:15:32 +000024obj-$(CONFIG_LEDS) += leds.o
Alexander Shishkinc5d6c772009-12-01 14:00:51 +010025obj-$(CONFIG_OC_ETM) += etm.o
Robert Leee1689792012-03-20 15:22:42 -050026obj-$(CONFIG_CPU_IDLE) += cpuidle.o
Russell King065909b2006-01-04 15:44:16 +000027obj-$(CONFIG_ISA_DMA_API) += dma.o
Dave Martindc2eb922011-05-23 12:22:10 +010028obj-$(CONFIG_FIQ) += fiq.o fiqasm.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070029obj-$(CONFIG_MODULES) += armksyms.o module.o
30obj-$(CONFIG_ARTHUR) += arthur.o
31obj-$(CONFIG_ISA_DMA) += dma-isa.o
Russell King863dab42006-08-28 12:47:05 +010032obj-$(CONFIG_PCI) += bios32.o isa.o
Linus Torvalds1fdb24e2011-10-28 12:02:27 -070033obj-$(CONFIG_ARM_CPU_SUSPEND) += sleep.o suspend.o
Russell King03b505e2010-12-20 14:44:32 +000034obj-$(CONFIG_SMP) += smp.o smp_tlb.o
Russell Kinga8cbcd92009-05-16 11:51:14 +010035obj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o
Russell Kingf32f4ce2009-05-16 12:14:21 +010036obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o
Marc Zyngier022c03a2012-01-11 17:25:17 +000037obj-$(CONFIG_ARM_ARCH_TIMER) += arch_timer.o
Rabin Vincentd82227c2012-02-18 17:50:06 +010038obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o
39obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o
Rabin Vincent09f05d82012-02-18 17:52:41 +010040obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o
Richard Purdiec587e4a2007-02-06 21:29:00 +010041obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
Rabin Vincentb21d55e2012-02-18 17:50:51 +010042obj-$(CONFIG_KPROBES) += kprobes.o kprobes-common.o patch.o
Jon Medhurst24371702011-04-19 17:56:58 +010043ifdef CONFIG_THUMB2_KERNEL
44obj-$(CONFIG_KPROBES) += kprobes-thumb.o
45else
Jon Medhurst691b2ff2011-07-06 10:49:07 +010046obj-$(CONFIG_KPROBES) += kprobes-arm.o
Jon Medhurst24371702011-04-19 17:56:58 +010047endif
Jon Medhurst9eed1792011-08-28 16:02:38 +010048obj-$(CONFIG_ARM_KPROBES_TEST) += test-kprobes.o
49test-kprobes-objs := kprobes-test.o
Jon Medhurstc7054aa2011-08-27 12:40:30 +010050ifdef CONFIG_THUMB2_KERNEL
51test-kprobes-objs += kprobes-test-thumb.o
Jon Medhurstc0cc6df2011-08-27 12:41:05 +010052else
53test-kprobes-objs += kprobes-test-arm.o
Jon Medhurstc7054aa2011-08-27 12:40:30 +010054endif
Richard Purdie4cd9d6f2008-01-02 00:56:46 +010055obj-$(CONFIG_ATAGS_PROC) += atags.o
Nicolas Pitre687ad012006-01-14 16:35:31 +000056obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
Catalin Marinasd7f864b2008-04-18 22:43:06 +010057obj-$(CONFIG_ARM_THUMBEE) += thumbee.o
Jason Wessel5cbad0e2008-02-20 13:33:40 -060058obj-$(CONFIG_KGDB) += kgdb.o
Catalin Marinasadf8b372009-02-12 13:56:34 +010059obj-$(CONFIG_ARM_UNWIND) += unwind.o
Linus Walleijbc581772009-09-15 17:30:37 +010060obj-$(CONFIG_HAVE_TCM) += tcm.o
Grant Likely9eb8f672011-04-28 14:27:20 -060061obj-$(CONFIG_OF) += devtree.o
Mika Westerberg67742c82010-05-10 09:26:19 +010062obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
Leif Lindholm64d2dc32010-09-16 18:00:47 +010063obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o
Russell King283a1b92010-11-08 10:11:19 +000064CFLAGS_swp_emulate.o := -Wa,-march=armv7-a
Will Deacon19852e52010-09-03 10:44:33 +010065obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070066
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010067obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
68obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
Eric Miao40305a52009-02-26 09:34:35 +080069obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o
Haojian Zhuangef6c8442010-11-24 11:54:25 +080070obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010071obj-$(CONFIG_IWMMXT) += iwmmxt.o
Jamie Iles0f4f0672010-02-02 20:23:15 +010072obj-$(CONFIG_CPU_HAS_PMU) += pmu.o
Jamie Iles1b8873a2010-02-02 20:25:44 +010073obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070074AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
Vincent Guittotc9018aa2011-08-08 13:21:59 +010075obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070076
77ifneq ($(CONFIG_ARCH_EBSA110),y)
78 obj-y += io.o
79endif
80
Hyok S. Choi3b920ce2006-04-24 09:45:35 +010081head-y := head$(MMUEXT).o
Linus Torvalds1da177e2005-04-16 15:20:36 -070082obj-$(CONFIG_DEBUG_LL) += debug.o
Catalin Marinas93fd03a82009-12-09 10:02:18 +000083obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070084
85extra-y := $(head-y) init_task.o vmlinux.lds