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 8376cfa87STim Birdifdef CONFIG_FUNCTION_TRACER 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 1673a65b3fSUwe Kleine-Königobj-y := 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 2073a65b3fSUwe Kleine-Königobj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o 2173a65b3fSUwe Kleine-König 22373b32abSRussell Kingobj-$(CONFIG_LEDS) += leds.o 23c5d6c770SAlexander Shishkinobj-$(CONFIG_OC_ETM) += etm.o 24c5d6c770SAlexander Shishkin 25065909b9SRussell Kingobj-$(CONFIG_ISA_DMA_API) += dma.o 261da177e4SLinus Torvaldsobj-$(CONFIG_ARCH_ACORN) += ecard.o 271da177e4SLinus Torvaldsobj-$(CONFIG_FIQ) += fiq.o 281da177e4SLinus Torvaldsobj-$(CONFIG_MODULES) += armksyms.o module.o 291da177e4SLinus Torvaldsobj-$(CONFIG_ARTHUR) += arthur.o 301da177e4SLinus Torvaldsobj-$(CONFIG_ISA_DMA) += dma-isa.o 31863dab45SRussell Kingobj-$(CONFIG_PCI) += bios32.o isa.o 3229ea23ffSRussell Kingobj-$(CONFIG_PM_SLEEP) += sleep.o 33112f38a4SRussell Kingobj-$(CONFIG_HAVE_SCHED_CLOCK) += sched_clock.o 3403b505eaSRussell Kingobj-$(CONFIG_SMP) += smp.o smp_tlb.o 35a8cbcd92SRussell Kingobj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o 36f32f4ce2SRussell Kingobj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o 37014c257cSAbhishek Sagarobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 38376cfa87STim Birdobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 39c587e4a6SRichard Purdieobj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o 4024ba613cSAbhishek Sagarobj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o 414cd9d6f7SRichard Purdieobj-$(CONFIG_ATAGS_PROC) += atags.o 42687ad019SNicolas Pitreobj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o 43d7f864beSCatalin Marinasobj-$(CONFIG_ARM_THUMBEE) += thumbee.o 445cbad0ebSJason Wesselobj-$(CONFIG_KGDB) += kgdb.o 45adf8b37bSCatalin Marinasobj-$(CONFIG_ARM_UNWIND) += unwind.o 46bc581770SLinus Walleijobj-$(CONFIG_HAVE_TCM) += tcm.o 47*9eb8f674SGrant Likelyobj-$(CONFIG_OF) += devtree.o 4867742c81SMika Westerbergobj-$(CONFIG_CRASH_DUMP) += crash_dump.o 4964d2dc38SLeif Lindholmobj-$(CONFIG_SWP_EMULATE) += swp_emulate.o 50283a1b92SRussell KingCFLAGS_swp_emulate.o := -Wa,-march=armv7-a 5119852e59SWill Deaconobj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o 521da177e4SLinus Torvalds 53c17fad11SLennert Buytenhekobj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o 54c17fad11SLennert BuytenhekAFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 55c17fad11SLennert Buytenhek 56afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o 57afe4b25eSLennert Buytenhekobj-$(CONFIG_CPU_XSC3) += xscale-cp0.o 5840305a58SEric Miaoobj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o 59ef6c8445SHaojian Zhuangobj-$(CONFIG_CPU_PJ4) += pj4-cp0.o 60afe4b25eSLennert Buytenhekobj-$(CONFIG_IWMMXT) += iwmmxt.o 610f4f0672SJamie Ilesobj-$(CONFIG_CPU_HAS_PMU) += pmu.o 621b8873a0SJamie Ilesobj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o 631da177e4SLinus TorvaldsAFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt 641da177e4SLinus Torvalds 651da177e4SLinus Torvaldsifneq ($(CONFIG_ARCH_EBSA110),y) 661da177e4SLinus Torvalds obj-y += io.o 671da177e4SLinus Torvaldsendif 681da177e4SLinus Torvalds 693b920cefSHyok S. Choihead-y := head$(MMUEXT).o 701da177e4SLinus Torvaldsobj-$(CONFIG_DEBUG_LL) += debug.o 7193fd03a8SCatalin Marinasobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 721da177e4SLinus Torvalds 731da177e4SLinus Torvaldsextra-y := $(head-y) init_task.o vmlinux.lds 74