blob: 01c0292eea8bd990a869b8c2ff62eb38152733bc [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
10endif
11
Uwe Kleine-König4bf1fa52009-07-21 09:56:27 +010012CFLAGS_REMOVE_return_address.o = -pg
13
Linus Torvalds1da177e2005-04-16 15:20:36 -070014# Object file lists.
15
Uwe Kleine-König73a65b32010-01-19 10:13:14 +010016obj-y := elf.o entry-armv.o entry-common.o irq.o \
Uwe Kleine-König4bf1fa52009-07-21 09:56:27 +010017 process.o ptrace.o return_address.o setup.o signal.o \
Russell Kingf16fb1e2007-04-28 09:59:37 +010018 sys_arm.o stacktrace.o time.o traps.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
Uwe Kleine-König73a65b32010-01-19 10:13:14 +010020obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o
21
Russell King373b32a2010-01-10 17:15:32 +000022obj-$(CONFIG_LEDS) += leds.o
Alexander Shishkinc5d6c772009-12-01 14:00:51 +010023obj-$(CONFIG_OC_ETM) += etm.o
24
Russell King065909b2006-01-04 15:44:16 +000025obj-$(CONFIG_ISA_DMA_API) += dma.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070026obj-$(CONFIG_ARCH_ACORN) += ecard.o
Dave Martindc2eb922011-05-23 12:22:10 +010027obj-$(CONFIG_FIQ) += fiq.o fiqasm.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070028obj-$(CONFIG_MODULES) += armksyms.o module.o
29obj-$(CONFIG_ARTHUR) += arthur.o
30obj-$(CONFIG_ISA_DMA) += dma-isa.o
Russell King863dab42006-08-28 12:47:05 +010031obj-$(CONFIG_PCI) += bios32.o isa.o
Russell King29ea23f2011-04-02 10:08:55 +010032obj-$(CONFIG_PM_SLEEP) += sleep.o
Russell King112f38a42010-12-15 19:23:07 +000033obj-$(CONFIG_HAVE_SCHED_CLOCK) += sched_clock.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
Abhishek Sagar014c2572008-05-31 14:23:50 +053037obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
Tim Bird376cfa82010-10-09 22:24:38 +053038obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
Richard Purdiec587e4a2007-02-06 21:29:00 +010039obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
Abhishek Sagar24ba6132007-06-11 22:20:10 +000040obj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o
Richard Purdie4cd9d6f2008-01-02 00:56:46 +010041obj-$(CONFIG_ATAGS_PROC) += atags.o
Nicolas Pitre687ad012006-01-14 16:35:31 +000042obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
Catalin Marinasd7f864b2008-04-18 22:43:06 +010043obj-$(CONFIG_ARM_THUMBEE) += thumbee.o
Jason Wessel5cbad0e2008-02-20 13:33:40 -060044obj-$(CONFIG_KGDB) += kgdb.o
Catalin Marinasadf8b372009-02-12 13:56:34 +010045obj-$(CONFIG_ARM_UNWIND) += unwind.o
Linus Walleijbc581772009-09-15 17:30:37 +010046obj-$(CONFIG_HAVE_TCM) += tcm.o
Mika Westerberg67742c82010-05-10 09:26:19 +010047obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
Leif Lindholm64d2dc32010-09-16 18:00:47 +010048obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o
Russell King283a1b92010-11-08 10:11:19 +000049CFLAGS_swp_emulate.o := -Wa,-march=armv7-a
Will Deacon19852e52010-09-03 10:44:33 +010050obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
Lennert Buytenhekc17fad12006-06-27 23:03:03 +010052obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o
53AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312
54
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010055obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
56obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
Eric Miao40305a52009-02-26 09:34:35 +080057obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o
Haojian Zhuangef6c8442010-11-24 11:54:25 +080058obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010059obj-$(CONFIG_IWMMXT) += iwmmxt.o
Jamie Iles0f4f0672010-02-02 20:23:15 +010060obj-$(CONFIG_CPU_HAS_PMU) += pmu.o
Jamie Iles1b8873a2010-02-02 20:25:44 +010061obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070062AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
63
64ifneq ($(CONFIG_ARCH_EBSA110),y)
65 obj-y += io.o
66endif
67
Hyok S. Choi3b920ce2006-04-24 09:45:35 +010068head-y := head$(MMUEXT).o
Linus Torvalds1da177e2005-04-16 15:20:36 -070069obj-$(CONFIG_DEBUG_LL) += debug.o
Catalin Marinas93fd03a82009-12-09 10:02:18 +000070obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070071
72extra-y := $(head-y) init_task.o vmlinux.lds