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 | |
Uwe Kleine-König | 4477ca4 | 2013-03-21 21:02:37 +0100 | [diff] [blame] | 18 | obj-y := elf.o entry-common.o irq.o opcodes.o \ |
Stephen Boyd | 38ff87f | 2013-06-01 23:39:40 -0700 | [diff] [blame] | 19 | process.o ptrace.o return_address.o \ |
Victor Kamensky | 574e2b5 | 2013-08-27 22:41:57 -0700 | [diff] [blame] | 20 | setup.o signal.o sigreturn_codes.o \ |
| 21 | stacktrace.o sys_arm.o time.o traps.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
Nicolas Pitre | bd51e2f | 2012-09-01 03:03:25 +0100 | [diff] [blame] | 23 | obj-$(CONFIG_ATAGS) += atags_parse.o |
| 24 | obj-$(CONFIG_ATAGS_PROC) += atags_proc.o |
Nicolas Pitre | aa783b6 | 2012-09-01 03:00:15 +0100 | [diff] [blame] | 25 | obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o |
Uwe Kleine-König | 73a65b3 | 2010-01-19 10:13:14 +0100 | [diff] [blame] | 26 | |
Uwe Kleine-König | 4477ca4 | 2013-03-21 21:02:37 +0100 | [diff] [blame] | 27 | ifeq ($(CONFIG_CPU_V7M),y) |
Uwe Kleine-König | 6a7d2c6 | 2013-08-27 21:15:02 +0100 | [diff] [blame] | 28 | obj-y += entry-v7m.o v7m.o |
Uwe Kleine-König | 4477ca4 | 2013-03-21 21:02:37 +0100 | [diff] [blame] | 29 | else |
| 30 | obj-y += entry-armv.o |
| 31 | endif |
| 32 | |
Alexander Shishkin | c5d6c77 | 2009-12-01 14:00:51 +0100 | [diff] [blame] | 33 | obj-$(CONFIG_OC_ETM) += etm.o |
Robert Lee | e168979 | 2012-03-20 15:22:42 -0500 | [diff] [blame] | 34 | obj-$(CONFIG_CPU_IDLE) += cpuidle.o |
Russell King | 065909b | 2006-01-04 15:44:16 +0000 | [diff] [blame] | 35 | obj-$(CONFIG_ISA_DMA_API) += dma.o |
Dave Martin | dc2eb92 | 2011-05-23 12:22:10 +0100 | [diff] [blame] | 36 | obj-$(CONFIG_FIQ) += fiq.o fiqasm.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | obj-$(CONFIG_MODULES) += armksyms.o module.o |
| 38 | obj-$(CONFIG_ARTHUR) += arthur.o |
| 39 | obj-$(CONFIG_ISA_DMA) += dma-isa.o |
Russell King | 863dab4 | 2006-08-28 12:47:05 +0100 | [diff] [blame] | 40 | obj-$(CONFIG_PCI) += bios32.o isa.o |
Linus Torvalds | 1fdb24e | 2011-10-28 12:02:27 -0700 | [diff] [blame] | 41 | obj-$(CONFIG_ARM_CPU_SUSPEND) += sleep.o suspend.o |
Sebastian Capella | 603fb42 | 2014-03-25 01:20:29 +0100 | [diff] [blame] | 42 | obj-$(CONFIG_HIBERNATION) += hibernate.o |
Jonathan Austin | 8006b4d | 2013-04-24 11:51:38 +0100 | [diff] [blame] | 43 | obj-$(CONFIG_SMP) += smp.o |
| 44 | ifdef CONFIG_MMU |
| 45 | obj-$(CONFIG_SMP) += smp_tlb.o |
| 46 | endif |
Russell King | a8cbcd9 | 2009-05-16 11:51:14 +0100 | [diff] [blame] | 47 | obj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o |
Russell King | f32f4ce | 2009-05-16 12:14:21 +0100 | [diff] [blame] | 48 | obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o |
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 49 | obj-$(CONFIG_ARM_ARCH_TIMER) += arch_timer.o |
Rabin Vincent | d82227c | 2012-02-18 17:50:06 +0100 | [diff] [blame] | 50 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o |
| 51 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o |
Rabin Vincent | 09f05d8 | 2012-02-18 17:52:41 +0100 | [diff] [blame] | 52 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o |
Richard Purdie | c587e4a | 2007-02-06 21:29:00 +0100 | [diff] [blame] | 53 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o |
David A. Long | c7edc9e | 2014-03-07 11:23:04 -0500 | [diff] [blame] | 54 | obj-$(CONFIG_UPROBES) += probes.o probes-arm.o uprobes.o uprobes-arm.o |
David A. Long | c18377c | 2014-03-07 11:16:10 -0500 | [diff] [blame] | 55 | obj-$(CONFIG_KPROBES) += probes.o kprobes.o kprobes-common.o patch.o |
Jon Medhurst | 2437170 | 2011-04-19 17:56:58 +0100 | [diff] [blame] | 56 | ifdef CONFIG_THUMB2_KERNEL |
David A. Long | 87abef6 | 2014-03-05 21:06:29 -0500 | [diff] [blame] | 57 | obj-$(CONFIG_KPROBES) += kprobes-thumb.o probes-thumb.o |
Jon Medhurst | 2437170 | 2011-04-19 17:56:58 +0100 | [diff] [blame] | 58 | else |
David A. Long | c18377c | 2014-03-07 11:16:10 -0500 | [diff] [blame] | 59 | obj-$(CONFIG_KPROBES) += kprobes-arm.o probes-arm.o |
Jon Medhurst | 2437170 | 2011-04-19 17:56:58 +0100 | [diff] [blame] | 60 | endif |
Jon Medhurst | 9eed179 | 2011-08-28 16:02:38 +0100 | [diff] [blame] | 61 | obj-$(CONFIG_ARM_KPROBES_TEST) += test-kprobes.o |
| 62 | test-kprobes-objs := kprobes-test.o |
Jon Medhurst | c7054aa | 2011-08-27 12:40:30 +0100 | [diff] [blame] | 63 | ifdef CONFIG_THUMB2_KERNEL |
| 64 | test-kprobes-objs += kprobes-test-thumb.o |
Jon Medhurst | c0cc6df | 2011-08-27 12:41:05 +0100 | [diff] [blame] | 65 | else |
| 66 | test-kprobes-objs += kprobes-test-arm.o |
Jon Medhurst | c7054aa | 2011-08-27 12:40:30 +0100 | [diff] [blame] | 67 | endif |
Nicolas Pitre | 687ad01 | 2006-01-14 16:35:31 +0000 | [diff] [blame] | 68 | obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o |
Catalin Marinas | d7f864b | 2008-04-18 22:43:06 +0100 | [diff] [blame] | 69 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o |
Jason Wessel | 5cbad0e | 2008-02-20 13:33:40 -0600 | [diff] [blame] | 70 | obj-$(CONFIG_KGDB) += kgdb.o |
Catalin Marinas | adf8b37 | 2009-02-12 13:56:34 +0100 | [diff] [blame] | 71 | obj-$(CONFIG_ARM_UNWIND) += unwind.o |
Linus Walleij | bc58177 | 2009-09-15 17:30:37 +0100 | [diff] [blame] | 72 | obj-$(CONFIG_HAVE_TCM) += tcm.o |
Grant Likely | 9eb8f67 | 2011-04-28 14:27:20 -0600 | [diff] [blame] | 73 | obj-$(CONFIG_OF) += devtree.o |
Mika Westerberg | 67742c8 | 2010-05-10 09:26:19 +0100 | [diff] [blame] | 74 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
Leif Lindholm | 64d2dc3 | 2010-09-16 18:00:47 +0100 | [diff] [blame] | 75 | obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o |
Russell King | 283a1b9 | 2010-11-08 10:11:19 +0000 | [diff] [blame] | 76 | CFLAGS_swp_emulate.o := -Wa,-march=armv7-a |
Will Deacon | 19852e5 | 2010-09-03 10:44:33 +0100 | [diff] [blame] | 77 | obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | |
Lennert Buytenhek | afe4b25 | 2006-12-03 18:51:14 +0100 | [diff] [blame] | 79 | obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o |
| 80 | obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o |
Eric Miao | 40305a5 | 2009-02-26 09:34:35 +0800 | [diff] [blame] | 81 | obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o |
Haojian Zhuang | ef6c844 | 2010-11-24 11:54:25 +0800 | [diff] [blame] | 82 | obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o |
Sebastian Hesselbarth | d93003e | 2014-04-24 22:58:30 +0100 | [diff] [blame] | 83 | obj-$(CONFIG_CPU_PJ4B) += pj4-cp0.o |
Lennert Buytenhek | afe4b25 | 2006-12-03 18:51:14 +0100 | [diff] [blame] | 84 | obj-$(CONFIG_IWMMXT) += iwmmxt.o |
Will Deacon | 4986389 | 2013-09-26 12:36:35 +0100 | [diff] [blame] | 85 | obj-$(CONFIG_PERF_EVENTS) += perf_regs.o |
Will Deacon | 5505b20 | 2012-07-29 13:09:14 +0100 | [diff] [blame] | 86 | obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o perf_event_cpu.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt |
Vincent Guittot | c9018aa | 2011-08-08 13:21:59 +0100 | [diff] [blame] | 88 | obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | |
| 90 | ifneq ($(CONFIG_ARCH_EBSA110),y) |
| 91 | obj-y += io.o |
| 92 | endif |
| 93 | |
Hyok S. Choi | 3b920ce | 2006-04-24 09:45:35 +0100 | [diff] [blame] | 94 | head-y := head$(MMUEXT).o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | obj-$(CONFIG_DEBUG_LL) += debug.o |
Catalin Marinas | 93fd03a8 | 2009-12-09 10:02:18 +0000 | [diff] [blame] | 96 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | |
Dave Martin | 80c59da | 2012-02-09 08:47:17 -0800 | [diff] [blame] | 98 | obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o |
Stefano Stabellini | 0577408 | 2013-05-21 14:24:11 +0000 | [diff] [blame] | 99 | ifeq ($(CONFIG_ARM_PSCI),y) |
| 100 | obj-y += psci.o |
| 101 | obj-$(CONFIG_SMP) += psci_smp.o |
| 102 | endif |
Dave Martin | 80c59da | 2012-02-09 08:47:17 -0800 | [diff] [blame] | 103 | |
Thomas Gleixner | 5290dc2 | 2012-05-03 09:02:50 +0000 | [diff] [blame] | 104 | extra-y := $(head-y) vmlinux.lds |