11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for the linux kernel. 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 5*029632fbSPeter Zijlstraobj-y = fork.o exec_domain.o panic.o printk.o \ 668f4f1ecSMax Krasnyansky cpu.o exit.o itimer.o time.o softirq.o resource.o \ 7afa588b2SEric W. Biederman sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \ 81da177e4SLinus Torvalds signal.o sys.o kmod.o workqueue.o pid.o \ 9e260be67SPaul E. McKenney rcupdate.o extable.o params.o posix-timers.o \ 10c0a31329SThomas Gleixner kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \ 1164ac24e7SMatthew Wilcox hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ 12e8db0be1SJean Pihet notifier.o ksysfs.o sched_clock.o cred.o \ 13*029632fbSPeter Zijlstra async.o range.o groups.o 14*029632fbSPeter Zijlstra 15*029632fbSPeter Zijlstraobj-y += sched.o sched_idletask.o sched_fair.o sched_rt.o sched_stoptask.o 16*029632fbSPeter Zijlstraobj-$(CONFIG_SCHED_AUTOGROUP) += sched_autogroup.o 17*029632fbSPeter Zijlstraobj-$(CONFIG_SCHEDSTATS) += sched_stats.o 18*029632fbSPeter Zijlstraobj-$(CONFIG_SCHED_DEBUG) += sched_debug.o 191da177e4SLinus Torvalds 20606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER 216ec56232SSteven Rostedt# Do not trace debug files and internal ftrace files 226ec56232SSteven RostedtCFLAGS_REMOVE_lockdep.o = -pg 236ec56232SSteven RostedtCFLAGS_REMOVE_lockdep_proc.o = -pg 246ec56232SSteven RostedtCFLAGS_REMOVE_mutex-debug.o = -pg 256ec56232SSteven RostedtCFLAGS_REMOVE_rtmutex-debug.o = -pg 266ec56232SSteven RostedtCFLAGS_REMOVE_cgroup-debug.o = -pg 276ec56232SSteven RostedtCFLAGS_REMOVE_sched_clock.o = -pg 28e360adbeSPeter ZijlstraCFLAGS_REMOVE_irq_work.o = -pg 291d09daa5SSteven Rostedtendif 301d09daa5SSteven Rostedt 318174f150SMatt Helsleyobj-$(CONFIG_FREEZER) += freezer.o 32b03f6489SAdrian Bunkobj-$(CONFIG_PROFILING) += profile.o 3388f458e4SHolger Schurigobj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o 348637c099SIngo Molnarobj-$(CONFIG_STACKTRACE) += stacktrace.o 35ad596171Sjohn stultzobj-y += time/ 36408894eeSIngo Molnarobj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o 37fbb9ce95SIngo Molnarobj-$(CONFIG_LOCKDEP) += lockdep.o 38a8f24a39SIngo Molnarifeq ($(CONFIG_PROC_FS),y) 39a8f24a39SIngo Molnarobj-$(CONFIG_LOCKDEP) += lockdep_proc.o 40a8f24a39SIngo Molnarendif 411da177e4SLinus Torvaldsobj-$(CONFIG_FUTEX) += futex.o 4234f192c6SIngo Molnarifeq ($(CONFIG_COMPAT),y) 4334f192c6SIngo Molnarobj-$(CONFIG_FUTEX) += futex_compat.o 4434f192c6SIngo Molnarendif 4523f78d4aSIngo Molnarobj-$(CONFIG_RT_MUTEXES) += rtmutex.o 46e7eebaf6SIngo Molnarobj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o 4761a87122SThomas Gleixnerobj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o 481da177e4SLinus Torvaldsobj-$(CONFIG_GENERIC_ISA_DMA) += dma.o 49351f8f8eSAmerigo Wangobj-$(CONFIG_SMP) += smp.o 509316fcacSAndrew Mortonifneq ($(CONFIG_SMP),y) 5153ce3d95SAndrew Mortonobj-y += up.o 5253ce3d95SAndrew Mortonendif 5368f4f1ecSMax Krasnyanskyobj-$(CONFIG_SMP) += spinlock.o 54fb1c8f93SIngo Molnarobj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o 558a25d5deSIngo Molnarobj-$(CONFIG_PROVE_LOCKING) += spinlock.o 561da177e4SLinus Torvaldsobj-$(CONFIG_UID16) += uid16.o 571da177e4SLinus Torvaldsobj-$(CONFIG_MODULES) += module.o 581da177e4SLinus Torvaldsobj-$(CONFIG_KALLSYMS) += kallsyms.o 591da177e4SLinus Torvaldsobj-$(CONFIG_PM) += power/ 6042f5e039SRafael J. Wysockiobj-$(CONFIG_FREEZER) += power/ 611da177e4SLinus Torvaldsobj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o 62dc009d92SEric W. Biedermanobj-$(CONFIG_KEXEC) += kexec.o 636dab2778SArjan van de Venobj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o 641da177e4SLinus Torvaldsobj-$(CONFIG_COMPAT) += compat.o 65ddbcc7e8SPaul Menageobj-$(CONFIG_CGROUPS) += cgroup.o 66dc52ddc0SMatt Helsleyobj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o 671da177e4SLinus Torvaldsobj-$(CONFIG_CPUSETS) += cpuset.o 68aee16ce7SPavel Emelyanovobj-$(CONFIG_UTS_NS) += utsname.o 69aee16ce7SPavel Emelyanovobj-$(CONFIG_USER_NS) += user_namespace.o 7074bd59bbSPavel Emelyanovobj-$(CONFIG_PID_NS) += pid_namespace.o 711da177e4SLinus Torvaldsobj-$(CONFIG_IKCONFIG) += configs.o 72e552b661SPavel Emelianovobj-$(CONFIG_RESOURCE_COUNTERS) += res_counter.o 73bbf1bb3eSTejun Heoobj-$(CONFIG_SMP) += stop_machine.o 748c1c9356SAnanth N Mavinakayanahalliobj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o 75939a67fcSEric Parisobj-$(CONFIG_AUDIT) += audit.o auditfilter.o 761da177e4SLinus Torvaldsobj-$(CONFIG_AUDITSYSCALL) += auditsc.o 77939a67fcSEric Parisobj-$(CONFIG_AUDIT_WATCH) += audit_watch.o 7874c3cbe3SAl Viroobj-$(CONFIG_AUDIT_TREE) += audit_tree.o 79939a67fcSEric Parisobj-$(CONFIG_GCOV_KERNEL) += gcov/ 801da177e4SLinus Torvaldsobj-$(CONFIG_KPROBES) += kprobes.o 81c4338209SJason Wesselobj-$(CONFIG_KGDB) += debug/ 82e162b39aSMandeep Singh Bainesobj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o 8358687acbSDon Zickusobj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o 841da177e4SLinus Torvaldsobj-$(CONFIG_GENERIC_HARDIRQS) += irq/ 851da177e4SLinus Torvaldsobj-$(CONFIG_SECCOMP) += seccomp.o 86a241ec65SPaul E. McKenneyobj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o 8764db4cffSPaul E. McKenneyobj-$(CONFIG_TREE_RCU) += rcutree.o 88f41d911fSPaul E. McKenneyobj-$(CONFIG_TREE_PREEMPT_RCU) += rcutree.o 8964db4cffSPaul E. McKenneyobj-$(CONFIG_TREE_RCU_TRACE) += rcutree_trace.o 909b1d82faSPaul E. McKenneyobj-$(CONFIG_TINY_RCU) += rcutiny.o 91a57eb940SPaul E. McKenneyobj-$(CONFIG_TINY_PREEMPT_RCU) += rcutiny.o 92b86ff981SJens Axboeobj-$(CONFIG_RELAY) += relay.o 9339732acdSEric W. Biedermanobj-$(CONFIG_SYSCTL) += utsname_sysctl.o 94ca74e92bSShailabh Nagarobj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o 95f3cef7a9SJay Lanobj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o 9697e1c18eSMathieu Desnoyersobj-$(CONFIG_TRACEPOINTS) += tracepoint.o 979745512cSArjan van de Venobj-$(CONFIG_LATENCYTOP) += latencytop.o 981fcccbacSDaisuke HATAYAMAobj-$(CONFIG_BINFMT_ELF) += elfcore.o 991fcccbacSDaisuke HATAYAMAobj-$(CONFIG_COMPAT_BINFMT_ELF) += elfcore.o 1001fcccbacSDaisuke HATAYAMAobj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o 101606576ceSSteven Rostedtobj-$(CONFIG_FUNCTION_TRACER) += trace/ 102bc0c38d1SSteven Rostedtobj-$(CONFIG_TRACING) += trace/ 10356449f43SIngo Molnarobj-$(CONFIG_X86_DS) += trace/ 1041155de47SPaul Mundtobj-$(CONFIG_RING_BUFFER) += trace/ 105870915e0SMathieu Desnoyersobj-$(CONFIG_TRACEPOINTS) += trace/ 1066e0534f2SGregory Haskinsobj-$(CONFIG_SMP) += sched_cpupri.o 107e360adbeSPeter Zijlstraobj-$(CONFIG_IRQ_WORK) += irq_work.o 108ab10023eSColin Crossobj-$(CONFIG_CPU_PM) += cpu_pm.o 109fae85b7cSBorislav Petkov 110fae85b7cSBorislav Petkovobj-$(CONFIG_PERF_EVENTS) += events/ 111fae85b7cSBorislav Petkov 1127a041097SAvi Kivityobj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o 11316295becSSteffen Klassertobj-$(CONFIG_PADATA) += padata.o 11493a72052SOlaf Heringobj-$(CONFIG_CRASH_DUMP) += crash_dump.o 115b77f0f3cSJason Baronobj-$(CONFIG_JUMP_LABEL) += jump_label.o 1161da177e4SLinus Torvalds 117ae1e9130SIngo Molnarifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y) 1181da177e4SLinus Torvalds# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is 1191da177e4SLinus Torvalds# needed for x86 only. Why this used to be enabled for all architectures is beyond 1201da177e4SLinus Torvalds# me. I suspect most platforms don't need this, but until we know that for sure 1211da177e4SLinus Torvalds# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k 1221da177e4SLinus Torvalds# to get a correct value for the wait-channel (WCHAN in ps). --davidm 1231da177e4SLinus TorvaldsCFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer 1241da177e4SLinus Torvaldsendif 1251da177e4SLinus Torvalds 1261da177e4SLinus Torvalds$(obj)/configs.o: $(obj)/config_data.h 1271da177e4SLinus Torvalds 1281da177e4SLinus Torvalds# config_data.h contains the same information as ikconfig.h but gzipped. 1291da177e4SLinus Torvalds# Info from config_data can be extracted from /proc/config* 1301da177e4SLinus Torvaldstargets += config_data.gz 13141263fc6SBen Gardiner$(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE 1321da177e4SLinus Torvalds $(call if_changed,gzip) 1331da177e4SLinus Torvalds 134e78e8f2dSPeter Foley filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") 1351da177e4SLinus Torvaldstargets += config_data.h 1361da177e4SLinus Torvalds$(obj)/config_data.h: $(obj)/config_data.gz FORCE 137e78e8f2dSPeter Foley $(call filechk,ikconfiggz) 138bdc80787SH. Peter Anvin 139bdc80787SH. Peter Anvin$(obj)/time.o: $(obj)/timeconst.h 140bdc80787SH. Peter Anvin 141bdc80787SH. Peter Anvinquiet_cmd_timeconst = TIMEC $@ 142bdc80787SH. Peter Anvin cmd_timeconst = $(PERL) $< $(CONFIG_HZ) > $@ 143bdc80787SH. Peter Anvintargets += timeconst.h 144bdc80787SH. Peter Anvin$(obj)/timeconst.h: $(src)/timeconst.pl FORCE 145bdc80787SH. Peter Anvin $(call if_changed,timeconst) 146