Makefile 1.9 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4
#
# Makefile for the linux kernel.
#

5 6
CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
AFLAGS_head.o        := -DTEXT_OFFSET=$(TEXT_OFFSET)
L
Linus Torvalds 已提交
7

A
Abhishek Sagar 已提交
8 9 10 11
ifdef CONFIG_DYNAMIC_FTRACE
CFLAGS_REMOVE_ftrace.o = -pg
endif

12 13
CFLAGS_REMOVE_return_address.o = -pg

L
Linus Torvalds 已提交
14 15
# Object file lists.

16
obj-y		:= elf.o entry-armv.o entry-common.o irq.o \
17
		   process.o ptrace.o return_address.o setup.o signal.o \
18
		   sys_arm.o stacktrace.o time.o traps.o
L
Linus Torvalds 已提交
19

20 21
obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o

22
obj-$(CONFIG_LEDS)		+= leds.o
23 24
obj-$(CONFIG_OC_ETM)		+= etm.o

25
obj-$(CONFIG_ISA_DMA_API)	+= dma.o
L
Linus Torvalds 已提交
26 27 28 29 30
obj-$(CONFIG_ARCH_ACORN)	+= ecard.o 
obj-$(CONFIG_FIQ)		+= fiq.o
obj-$(CONFIG_MODULES)		+= armksyms.o module.o
obj-$(CONFIG_ARTHUR)		+= arthur.o
obj-$(CONFIG_ISA_DMA)		+= dma-isa.o
31
obj-$(CONFIG_PCI)		+= bios32.o isa.o
L
Linus Torvalds 已提交
32
obj-$(CONFIG_SMP)		+= smp.o
33
obj-$(CONFIG_HAVE_ARM_SCU)	+= smp_scu.o
34
obj-$(CONFIG_HAVE_ARM_TWD)	+= smp_twd.o
A
Abhishek Sagar 已提交
35
obj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o
R
Richard Purdie 已提交
36
obj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
A
Abhishek Sagar 已提交
37
obj-$(CONFIG_KPROBES)		+= kprobes.o kprobes-decode.o
38
obj-$(CONFIG_ATAGS_PROC)	+= atags.o
39
obj-$(CONFIG_OABI_COMPAT)	+= sys_oabi-compat.o
40
obj-$(CONFIG_ARM_THUMBEE)	+= thumbee.o
J
Jason Wessel 已提交
41
obj-$(CONFIG_KGDB)		+= kgdb.o
42
obj-$(CONFIG_ARM_UNWIND)	+= unwind.o
43
obj-$(CONFIG_HAVE_TCM)		+= tcm.o
44
obj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
45
obj-$(CONFIG_SWP_EMULATE)	+= swp_emulate.o
46
obj-$(CONFIG_HAVE_HW_BREAKPOINT)	+= hw_breakpoint.o
L
Linus Torvalds 已提交
47

48 49 50
obj-$(CONFIG_CRUNCH)		+= crunch.o crunch-bits.o
AFLAGS_crunch-bits.o		:= -Wa,-mcpu=ep9312

51 52
obj-$(CONFIG_CPU_XSCALE)	+= xscale-cp0.o
obj-$(CONFIG_CPU_XSC3)		+= xscale-cp0.o
53
obj-$(CONFIG_CPU_MOHAWK)	+= xscale-cp0.o
54
obj-$(CONFIG_IWMMXT)		+= iwmmxt.o
55
obj-$(CONFIG_CPU_HAS_PMU)	+= pmu.o
56
obj-$(CONFIG_HW_PERF_EVENTS)	+= perf_event.o
L
Linus Torvalds 已提交
57 58 59 60 61 62
AFLAGS_iwmmxt.o			:= -Wa,-mcpu=iwmmxt

ifneq ($(CONFIG_ARCH_EBSA110),y)
  obj-y		+= io.o
endif

63
head-y			:= head$(MMUEXT).o
L
Linus Torvalds 已提交
64
obj-$(CONFIG_DEBUG_LL)	+= debug.o
65
obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
L
Linus Torvalds 已提交
66 67

extra-y := $(head-y) init_task.o vmlinux.lds