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 |
| 10 | endif |
| 11 | |
Uwe Kleine-König | 4bf1fa5 | 2009-07-21 09:56:27 +0100 | [diff] [blame] | 12 | CFLAGS_REMOVE_return_address.o = -pg |
| 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | # Object file lists. |
| 15 | |
Uwe Kleine-König | 73a65b3 | 2010-01-19 10:13:14 +0100 | [diff] [blame] | 16 | obj-y := elf.o entry-armv.o entry-common.o irq.o \ |
Uwe Kleine-König | 4bf1fa5 | 2009-07-21 09:56:27 +0100 | [diff] [blame] | 17 | process.o ptrace.o return_address.o setup.o signal.o \ |
Russell King | f16fb1e | 2007-04-28 09:59:37 +0100 | [diff] [blame] | 18 | sys_arm.o stacktrace.o time.o traps.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Uwe Kleine-König | 73a65b3 | 2010-01-19 10:13:14 +0100 | [diff] [blame] | 20 | obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o |
| 21 | |
Russell King | 373b32a | 2010-01-10 17:15:32 +0000 | [diff] [blame] | 22 | obj-$(CONFIG_LEDS) += leds.o |
Alexander Shishkin | c5d6c77 | 2009-12-01 14:00:51 +0100 | [diff] [blame] | 23 | obj-$(CONFIG_OC_ETM) += etm.o |
| 24 | |
Russell King | 065909b | 2006-01-04 15:44:16 +0000 | [diff] [blame] | 25 | obj-$(CONFIG_ISA_DMA_API) += dma.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | obj-$(CONFIG_ARCH_ACORN) += ecard.o |
Dave Martin | dc2eb92 | 2011-05-23 12:22:10 +0100 | [diff] [blame^] | 27 | obj-$(CONFIG_FIQ) += fiq.o fiqasm.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | obj-$(CONFIG_MODULES) += armksyms.o module.o |
| 29 | obj-$(CONFIG_ARTHUR) += arthur.o |
| 30 | obj-$(CONFIG_ISA_DMA) += dma-isa.o |
Russell King | 863dab4 | 2006-08-28 12:47:05 +0100 | [diff] [blame] | 31 | obj-$(CONFIG_PCI) += bios32.o isa.o |
Russell King | 29ea23f | 2011-04-02 10:08:55 +0100 | [diff] [blame] | 32 | obj-$(CONFIG_PM_SLEEP) += sleep.o |
Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 33 | obj-$(CONFIG_HAVE_SCHED_CLOCK) += sched_clock.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 |
Abhishek Sagar | 014c257 | 2008-05-31 14:23:50 +0530 | [diff] [blame] | 37 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
Tim Bird | 376cfa8 | 2010-10-09 22:24:38 +0530 | [diff] [blame] | 38 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o |
Richard Purdie | c587e4a | 2007-02-06 21:29:00 +0100 | [diff] [blame] | 39 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o |
Abhishek Sagar | 24ba613 | 2007-06-11 22:20:10 +0000 | [diff] [blame] | 40 | obj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o |
Richard Purdie | 4cd9d6f | 2008-01-02 00:56:46 +0100 | [diff] [blame] | 41 | obj-$(CONFIG_ATAGS_PROC) += atags.o |
Nicolas Pitre | 687ad01 | 2006-01-14 16:35:31 +0000 | [diff] [blame] | 42 | obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o |
Catalin Marinas | d7f864b | 2008-04-18 22:43:06 +0100 | [diff] [blame] | 43 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o |
Jason Wessel | 5cbad0e | 2008-02-20 13:33:40 -0600 | [diff] [blame] | 44 | obj-$(CONFIG_KGDB) += kgdb.o |
Catalin Marinas | adf8b37 | 2009-02-12 13:56:34 +0100 | [diff] [blame] | 45 | obj-$(CONFIG_ARM_UNWIND) += unwind.o |
Linus Walleij | bc58177 | 2009-09-15 17:30:37 +0100 | [diff] [blame] | 46 | obj-$(CONFIG_HAVE_TCM) += tcm.o |
Mika Westerberg | 67742c8 | 2010-05-10 09:26:19 +0100 | [diff] [blame] | 47 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
Leif Lindholm | 64d2dc3 | 2010-09-16 18:00:47 +0100 | [diff] [blame] | 48 | obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o |
Russell King | 283a1b9 | 2010-11-08 10:11:19 +0000 | [diff] [blame] | 49 | CFLAGS_swp_emulate.o := -Wa,-march=armv7-a |
Will Deacon | 19852e5 | 2010-09-03 10:44:33 +0100 | [diff] [blame] | 50 | obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | |
Lennert Buytenhek | c17fad1 | 2006-06-27 23:03:03 +0100 | [diff] [blame] | 52 | obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o |
| 53 | AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 |
| 54 | |
Lennert Buytenhek | afe4b25 | 2006-12-03 18:51:14 +0100 | [diff] [blame] | 55 | obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o |
| 56 | obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o |
Eric Miao | 40305a5 | 2009-02-26 09:34:35 +0800 | [diff] [blame] | 57 | obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o |
Haojian Zhuang | ef6c844 | 2010-11-24 11:54:25 +0800 | [diff] [blame] | 58 | obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o |
Lennert Buytenhek | afe4b25 | 2006-12-03 18:51:14 +0100 | [diff] [blame] | 59 | obj-$(CONFIG_IWMMXT) += iwmmxt.o |
Jamie Iles | 0f4f067 | 2010-02-02 20:23:15 +0100 | [diff] [blame] | 60 | obj-$(CONFIG_CPU_HAS_PMU) += pmu.o |
Jamie Iles | 1b8873a | 2010-02-02 20:25:44 +0100 | [diff] [blame] | 61 | obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt |
| 63 | |
| 64 | ifneq ($(CONFIG_ARCH_EBSA110),y) |
| 65 | obj-y += io.o |
| 66 | endif |
| 67 | |
Hyok S. Choi | 3b920ce | 2006-04-24 09:45:35 +0100 | [diff] [blame] | 68 | head-y := head$(MMUEXT).o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | obj-$(CONFIG_DEBUG_LL) += debug.o |
Catalin Marinas | 93fd03a8 | 2009-12-09 10:02:18 +0000 | [diff] [blame] | 70 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | |
| 72 | extra-y := $(head-y) init_task.o vmlinux.lds |