xref: /linux/arch/arm/kernel/Makefile (revision f32f4ce25745209f16a5a6cef7442144b596c68a)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the linux kernel.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
59d4f13e5SRussell KingAFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
61da177e4SLinus Torvalds
7014c257cSAbhishek Sagarifdef CONFIG_DYNAMIC_FTRACE
8014c257cSAbhishek SagarCFLAGS_REMOVE_ftrace.o = -pg
9014c257cSAbhishek Sagarendif
10014c257cSAbhishek Sagar
111da177e4SLinus Torvalds# Object file lists.
121da177e4SLinus Torvalds
138ec53663SRussell Kingobj-y		:= compat.o elf.o entry-armv.o entry-common.o irq.o \
1464ac24e7SMatthew Wilcox		   process.o ptrace.o setup.o signal.o \
15f16fb1ecSRussell King		   sys_arm.o stacktrace.o time.o traps.o
161da177e4SLinus Torvalds
17065909b9SRussell Kingobj-$(CONFIG_ISA_DMA_API)	+= dma.o
181da177e4SLinus Torvaldsobj-$(CONFIG_ARCH_ACORN)	+= ecard.o
191da177e4SLinus Torvaldsobj-$(CONFIG_FIQ)		+= fiq.o
201da177e4SLinus Torvaldsobj-$(CONFIG_MODULES)		+= armksyms.o module.o
211da177e4SLinus Torvaldsobj-$(CONFIG_ARTHUR)		+= arthur.o
221da177e4SLinus Torvaldsobj-$(CONFIG_ISA_DMA)		+= dma-isa.o
23863dab45SRussell Kingobj-$(CONFIG_PCI)		+= bios32.o isa.o
241da177e4SLinus Torvaldsobj-$(CONFIG_SMP)		+= smp.o
25a8cbcd92SRussell Kingobj-$(CONFIG_HAVE_ARM_SCU)	+= smp_scu.o
26*f32f4ce2SRussell Kingobj-$(CONFIG_HAVE_ARM_TWD)	+= smp_twd.o
27014c257cSAbhishek Sagarobj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o
28c587e4a6SRichard Purdieobj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
2924ba613cSAbhishek Sagarobj-$(CONFIG_KPROBES)		+= kprobes.o kprobes-decode.o
304cd9d6f7SRichard Purdieobj-$(CONFIG_ATAGS_PROC)	+= atags.o
31687ad019SNicolas Pitreobj-$(CONFIG_OABI_COMPAT)	+= sys_oabi-compat.o
32d7f864beSCatalin Marinasobj-$(CONFIG_ARM_THUMBEE)	+= thumbee.o
335cbad0ebSJason Wesselobj-$(CONFIG_KGDB)		+= kgdb.o
34adf8b37bSCatalin Marinasobj-$(CONFIG_ARM_UNWIND)	+= unwind.o
351da177e4SLinus Torvalds
36c17fad11SLennert Buytenhekobj-$(CONFIG_CRUNCH)		+= crunch.o crunch-bits.o
37c17fad11SLennert BuytenhekAFLAGS_crunch-bits.o		:= -Wa,-mcpu=ep9312
38c17fad11SLennert Buytenhek
39afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSCALE)	+= xscale-cp0.o
40afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSC3)		+= xscale-cp0.o
4140305a58SEric Miaoobj-$(CONFIG_CPU_MOHAWK)	+= xscale-cp0.o
42afe4b25eSLennert Buytenhekobj-$(CONFIG_IWMMXT)		+= iwmmxt.o
431da177e4SLinus TorvaldsAFLAGS_iwmmxt.o			:= -Wa,-mcpu=iwmmxt
441da177e4SLinus Torvalds
451da177e4SLinus Torvaldsifneq ($(CONFIG_ARCH_EBSA110),y)
461da177e4SLinus Torvalds  obj-y		+= io.o
471da177e4SLinus Torvaldsendif
481da177e4SLinus Torvalds
493b920cefSHyok S. Choihead-y			:= head$(MMUEXT).o
501da177e4SLinus Torvaldsobj-$(CONFIG_DEBUG_LL)	+= debug.o
511da177e4SLinus Torvalds
521da177e4SLinus Torvaldsextra-y := $(head-y) init_task.o vmlinux.lds
53