11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for the linux kernel. 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 551b563fcSSam RavnborgCPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET) 69d4f13e5SRussell KingAFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) 71da177e4SLinus Torvalds 8014c257cSAbhishek Sagarifdef CONFIG_DYNAMIC_FTRACE 9014c257cSAbhishek SagarCFLAGS_REMOVE_ftrace.o = -pg 10014c257cSAbhishek Sagarendif 11014c257cSAbhishek Sagar 124bf1fa5aSUwe Kleine-KönigCFLAGS_REMOVE_return_address.o = -pg 134bf1fa5aSUwe Kleine-König 141da177e4SLinus Torvalds# Object file lists. 151da177e4SLinus Torvalds 168ec53663SRussell Kingobj-y := compat.o elf.o entry-armv.o entry-common.o irq.o \ 174bf1fa5aSUwe Kleine-König process.o ptrace.o return_address.o setup.o signal.o \ 18f16fb1ecSRussell King sys_arm.o stacktrace.o time.o traps.o 191da177e4SLinus Torvalds 20*373b32abSRussell Kingobj-$(CONFIG_LEDS) += leds.o 21c5d6c770SAlexander Shishkinobj-$(CONFIG_OC_ETM) += etm.o 22c5d6c770SAlexander Shishkin 23065909b9SRussell Kingobj-$(CONFIG_ISA_DMA_API) += dma.o 241da177e4SLinus Torvaldsobj-$(CONFIG_ARCH_ACORN) += ecard.o 251da177e4SLinus Torvaldsobj-$(CONFIG_FIQ) += fiq.o 261da177e4SLinus Torvaldsobj-$(CONFIG_MODULES) += armksyms.o module.o 271da177e4SLinus Torvaldsobj-$(CONFIG_ARTHUR) += arthur.o 281da177e4SLinus Torvaldsobj-$(CONFIG_ISA_DMA) += dma-isa.o 29863dab45SRussell Kingobj-$(CONFIG_PCI) += bios32.o isa.o 301da177e4SLinus Torvaldsobj-$(CONFIG_SMP) += smp.o 31a8cbcd92SRussell Kingobj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o 32f32f4ce2SRussell Kingobj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o 33014c257cSAbhishek Sagarobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 34c587e4a6SRichard Purdieobj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o 3524ba613cSAbhishek Sagarobj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o 364cd9d6f7SRichard Purdieobj-$(CONFIG_ATAGS_PROC) += atags.o 37687ad019SNicolas Pitreobj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o 38d7f864beSCatalin Marinasobj-$(CONFIG_ARM_THUMBEE) += thumbee.o 395cbad0ebSJason Wesselobj-$(CONFIG_KGDB) += kgdb.o 40adf8b37bSCatalin Marinasobj-$(CONFIG_ARM_UNWIND) += unwind.o 41bc581770SLinus Walleijobj-$(CONFIG_HAVE_TCM) += tcm.o 421da177e4SLinus Torvalds 43c17fad11SLennert Buytenhekobj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o 44c17fad11SLennert BuytenhekAFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 45c17fad11SLennert Buytenhek 46afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o 47afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSC3) += xscale-cp0.o 4840305a58SEric Miaoobj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o 49afe4b25eSLennert Buytenhekobj-$(CONFIG_IWMMXT) += iwmmxt.o 501da177e4SLinus TorvaldsAFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt 511da177e4SLinus Torvalds 521da177e4SLinus Torvaldsifneq ($(CONFIG_ARCH_EBSA110),y) 531da177e4SLinus Torvalds obj-y += io.o 541da177e4SLinus Torvaldsendif 551da177e4SLinus Torvalds 563b920cefSHyok S. Choihead-y := head$(MMUEXT).o 571da177e4SLinus Torvaldsobj-$(CONFIG_DEBUG_LL) += debug.o 5893fd03a8SCatalin Marinasobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 591da177e4SLinus Torvalds 601da177e4SLinus Torvaldsextra-y := $(head-y) init_task.o vmlinux.lds 61