Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux kernel. |
| 3 | # |
| 4 | |
Sam Ravnborg | 51b563f | 2009-09-20 12:28:22 +0200 | [diff] [blame] | 5 | CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET) |
| 6 | AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Tim Bird | 376cfa8 | 2010-10-09 22:24:38 +0530 | [diff] [blame] | 8 | ifdef CONFIG_FUNCTION_TRACER |
Abhishek Sagar | 014c257 | 2008-05-31 14:23:50 +0530 | [diff] [blame] | 9 | CFLAGS_REMOVE_ftrace.o = -pg |
Rabin Vincent | d82227c | 2012-02-18 17:50:06 +0100 | [diff] [blame] | 10 | CFLAGS_REMOVE_insn.o = -pg |
Rabin Vincent | b21d55e | 2012-02-18 17:50:51 +0100 | [diff] [blame] | 11 | CFLAGS_REMOVE_patch.o = -pg |
Abhishek Sagar | 014c257 | 2008-05-31 14:23:50 +0530 | [diff] [blame] | 12 | endif |
| 13 | |
Uwe Kleine-König | 4bf1fa5 | 2009-07-21 09:56:27 +0100 | [diff] [blame] | 14 | CFLAGS_REMOVE_return_address.o = -pg |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | # Object file lists. |
| 17 | |
Leif Lindholm | 0c9030d | 2011-12-12 19:31:55 +0100 | [diff] [blame] | 18 | obj-y := elf.o entry-armv.o entry-common.o irq.o opcodes.o \ |
Marc Zyngier | 6905a65 | 2012-01-18 15:05:11 +0000 | [diff] [blame] | 19 | 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
Uwe Kleine-König | 73a65b3 | 2010-01-19 10:13:14 +0100 | [diff] [blame] | 22 | obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o |
| 23 | |
Russell King | 373b32a | 2010-01-10 17:15:32 +0000 | [diff] [blame] | 24 | obj-$(CONFIG_LEDS) += leds.o |
Alexander Shishkin | c5d6c77 | 2009-12-01 14:00:51 +0100 | [diff] [blame] | 25 | obj-$(CONFIG_OC_ETM) += etm.o |
Robert Lee | e168979 | 2012-03-20 15:22:42 -0500 | [diff] [blame] | 26 | obj-$(CONFIG_CPU_IDLE) += cpuidle.o |
Russell King | 065909b | 2006-01-04 15:44:16 +0000 | [diff] [blame] | 27 | obj-$(CONFIG_ISA_DMA_API) += dma.o |
Dave Martin | dc2eb92 | 2011-05-23 12:22:10 +0100 | [diff] [blame] | 28 | obj-$(CONFIG_FIQ) += fiq.o fiqasm.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | obj-$(CONFIG_MODULES) += armksyms.o module.o |
| 30 | obj-$(CONFIG_ARTHUR) += arthur.o |
| 31 | obj-$(CONFIG_ISA_DMA) += dma-isa.o |
Russell King | 863dab4 | 2006-08-28 12:47:05 +0100 | [diff] [blame] | 32 | obj-$(CONFIG_PCI) += bios32.o isa.o |
Linus Torvalds | 1fdb24e | 2011-10-28 12:02:27 -0700 | [diff] [blame] | 33 | obj-$(CONFIG_ARM_CPU_SUSPEND) += sleep.o suspend.o |
Russell King | 03b505e | 2010-12-20 14:44:32 +0000 | [diff] [blame] | 34 | obj-$(CONFIG_SMP) += smp.o smp_tlb.o |
Russell King | a8cbcd9 | 2009-05-16 11:51:14 +0100 | [diff] [blame] | 35 | obj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o |
Russell King | f32f4ce | 2009-05-16 12:14:21 +0100 | [diff] [blame] | 36 | obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o |
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame^] | 37 | obj-$(CONFIG_ARM_ARCH_TIMER) += arch_timer.o |
Rabin Vincent | d82227c | 2012-02-18 17:50:06 +0100 | [diff] [blame] | 38 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o |
| 39 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o |
Rabin Vincent | 09f05d8 | 2012-02-18 17:52:41 +0100 | [diff] [blame] | 40 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o |
Richard Purdie | c587e4a | 2007-02-06 21:29:00 +0100 | [diff] [blame] | 41 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o |
Rabin Vincent | b21d55e | 2012-02-18 17:50:51 +0100 | [diff] [blame] | 42 | obj-$(CONFIG_KPROBES) += kprobes.o kprobes-common.o patch.o |
Jon Medhurst | 2437170 | 2011-04-19 17:56:58 +0100 | [diff] [blame] | 43 | ifdef CONFIG_THUMB2_KERNEL |
| 44 | obj-$(CONFIG_KPROBES) += kprobes-thumb.o |
| 45 | else |
Jon Medhurst | 691b2ff | 2011-07-06 10:49:07 +0100 | [diff] [blame] | 46 | obj-$(CONFIG_KPROBES) += kprobes-arm.o |
Jon Medhurst | 2437170 | 2011-04-19 17:56:58 +0100 | [diff] [blame] | 47 | endif |
Jon Medhurst | 9eed179 | 2011-08-28 16:02:38 +0100 | [diff] [blame] | 48 | obj-$(CONFIG_ARM_KPROBES_TEST) += test-kprobes.o |
| 49 | test-kprobes-objs := kprobes-test.o |
Jon Medhurst | c7054aa | 2011-08-27 12:40:30 +0100 | [diff] [blame] | 50 | ifdef CONFIG_THUMB2_KERNEL |
| 51 | test-kprobes-objs += kprobes-test-thumb.o |
Jon Medhurst | c0cc6df | 2011-08-27 12:41:05 +0100 | [diff] [blame] | 52 | else |
| 53 | test-kprobes-objs += kprobes-test-arm.o |
Jon Medhurst | c7054aa | 2011-08-27 12:40:30 +0100 | [diff] [blame] | 54 | endif |
Richard Purdie | 4cd9d6f | 2008-01-02 00:56:46 +0100 | [diff] [blame] | 55 | obj-$(CONFIG_ATAGS_PROC) += atags.o |
Nicolas Pitre | 687ad01 | 2006-01-14 16:35:31 +0000 | [diff] [blame] | 56 | obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o |
Catalin Marinas | d7f864b | 2008-04-18 22:43:06 +0100 | [diff] [blame] | 57 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o |
Jason Wessel | 5cbad0e | 2008-02-20 13:33:40 -0600 | [diff] [blame] | 58 | obj-$(CONFIG_KGDB) += kgdb.o |
Catalin Marinas | adf8b37 | 2009-02-12 13:56:34 +0100 | [diff] [blame] | 59 | obj-$(CONFIG_ARM_UNWIND) += unwind.o |
Linus Walleij | bc58177 | 2009-09-15 17:30:37 +0100 | [diff] [blame] | 60 | obj-$(CONFIG_HAVE_TCM) += tcm.o |
Grant Likely | 9eb8f67 | 2011-04-28 14:27:20 -0600 | [diff] [blame] | 61 | obj-$(CONFIG_OF) += devtree.o |
Mika Westerberg | 67742c8 | 2010-05-10 09:26:19 +0100 | [diff] [blame] | 62 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
Leif Lindholm | 64d2dc3 | 2010-09-16 18:00:47 +0100 | [diff] [blame] | 63 | obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o |
Russell King | 283a1b9 | 2010-11-08 10:11:19 +0000 | [diff] [blame] | 64 | CFLAGS_swp_emulate.o := -Wa,-march=armv7-a |
Will Deacon | 19852e5 | 2010-09-03 10:44:33 +0100 | [diff] [blame] | 65 | obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | |
Lennert Buytenhek | afe4b25 | 2006-12-03 18:51:14 +0100 | [diff] [blame] | 67 | obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o |
| 68 | obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o |
Eric Miao | 40305a5 | 2009-02-26 09:34:35 +0800 | [diff] [blame] | 69 | obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o |
Haojian Zhuang | ef6c844 | 2010-11-24 11:54:25 +0800 | [diff] [blame] | 70 | obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o |
Lennert Buytenhek | afe4b25 | 2006-12-03 18:51:14 +0100 | [diff] [blame] | 71 | obj-$(CONFIG_IWMMXT) += iwmmxt.o |
Jamie Iles | 0f4f067 | 2010-02-02 20:23:15 +0100 | [diff] [blame] | 72 | obj-$(CONFIG_CPU_HAS_PMU) += pmu.o |
Jamie Iles | 1b8873a | 2010-02-02 20:25:44 +0100 | [diff] [blame] | 73 | obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt |
Vincent Guittot | c9018aa | 2011-08-08 13:21:59 +0100 | [diff] [blame] | 75 | obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | |
| 77 | ifneq ($(CONFIG_ARCH_EBSA110),y) |
| 78 | obj-y += io.o |
| 79 | endif |
| 80 | |
Hyok S. Choi | 3b920ce | 2006-04-24 09:45:35 +0100 | [diff] [blame] | 81 | head-y := head$(MMUEXT).o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 | obj-$(CONFIG_DEBUG_LL) += debug.o |
Catalin Marinas | 93fd03a8 | 2009-12-09 10:02:18 +0000 | [diff] [blame] | 83 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 84 | |
| 85 | extra-y := $(head-y) init_task.o vmlinux.lds |