blob: eb9092ca80080cd4431951e46c6f2ce8daf70ab8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux kernel.
3#
4
Russell King9d4f13e2006-01-03 17:28:33 +00005AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Abhishek Sagar014c2572008-05-31 14:23:50 +05307ifdef CONFIG_DYNAMIC_FTRACE
8CFLAGS_REMOVE_ftrace.o = -pg
9endif
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011# Object file lists.
12
Russell King065909b2006-01-04 15:44:16 +000013obj-y := compat.o entry-armv.o entry-common.o irq.o \
Matthew Wilcox64ac24e2008-03-07 21:55:58 -050014 process.o ptrace.o setup.o signal.o \
Russell Kingf16fb1e2007-04-28 09:59:37 +010015 sys_arm.o stacktrace.o time.o traps.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Russell King065909b2006-01-04 15:44:16 +000017obj-$(CONFIG_ISA_DMA_API) += dma.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018obj-$(CONFIG_ARCH_ACORN) += ecard.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019obj-$(CONFIG_FIQ) += fiq.o
20obj-$(CONFIG_MODULES) += armksyms.o module.o
21obj-$(CONFIG_ARTHUR) += arthur.o
22obj-$(CONFIG_ISA_DMA) += dma-isa.o
Russell King863dab42006-08-28 12:47:05 +010023obj-$(CONFIG_PCI) += bios32.o isa.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070024obj-$(CONFIG_SMP) += smp.o
Abhishek Sagar014c2572008-05-31 14:23:50 +053025obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
Richard Purdiec587e4a2007-02-06 21:29:00 +010026obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
Abhishek Sagar24ba6132007-06-11 22:20:10 +000027obj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o
Richard Purdie4cd9d6f2008-01-02 00:56:46 +010028obj-$(CONFIG_ATAGS_PROC) += atags.o
Nicolas Pitre687ad012006-01-14 16:35:31 +000029obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
Catalin Marinasd7f864b2008-04-18 22:43:06 +010030obj-$(CONFIG_ARM_THUMBEE) += thumbee.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
Lennert Buytenhekc17fad12006-06-27 23:03:03 +010032obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o
33AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312
34
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010035obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
36obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
37obj-$(CONFIG_IWMMXT) += iwmmxt.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070038AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
39
40ifneq ($(CONFIG_ARCH_EBSA110),y)
41 obj-y += io.o
42endif
43
Hyok S. Choi3b920ce2006-04-24 09:45:35 +010044head-y := head$(MMUEXT).o
Linus Torvalds1da177e2005-04-16 15:20:36 -070045obj-$(CONFIG_DEBUG_LL) += debug.o
46
47extra-y := $(head-y) init_task.o vmlinux.lds