blob: 11a5197a221f74da0303581fa787814a9c46f904 [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 King8ec53662008-09-07 17:16:54 +010013obj-y := compat.o elf.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
Jason Wessel5cbad0e2008-02-20 13:33:40 -060031obj-$(CONFIG_KGDB) += kgdb.o
Catalin Marinasadf8b372009-02-12 13:56:34 +010032obj-$(CONFIG_ARM_UNWIND) += unwind.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
Lennert Buytenhekc17fad12006-06-27 23:03:03 +010034obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o
35AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312
36
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010037obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
38obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
Eric Miao40305a52009-02-26 09:34:35 +080039obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o
Lennert Buytenhekafe4b252006-12-03 18:51:14 +010040obj-$(CONFIG_IWMMXT) += iwmmxt.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070041AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
42
43ifneq ($(CONFIG_ARCH_EBSA110),y)
44 obj-y += io.o
45endif
46
Hyok S. Choi3b920ce2006-04-24 09:45:35 +010047head-y := head$(MMUEXT).o
Linus Torvalds1da177e2005-04-16 15:20:36 -070048obj-$(CONFIG_DEBUG_LL) += debug.o
49
50extra-y := $(head-y) init_task.o vmlinux.lds