blob: 60cd39c84e6d47bce185e616a10bf790c7becfbb [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux kernel.
3#
4
5obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
6 exit.o itimer.o time.o softirq.o resource.o \
Pavel Emelyanovaee16ce2008-02-08 04:18:23 -08007 sysctl.o capability.o ptrace.o timer.o user.o \
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 signal.o sys.o kmod.o workqueue.o pid.o \
Paul E. McKenneye260be62008-01-25 21:08:24 +01009 rcupdate.o extable.o params.o posix-timers.o \
Thomas Gleixnerc0a31322006-01-09 20:52:32 -080010 kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
Mark Grossf011e2e2008-02-04 22:30:09 -080011 hrtimer.o rwsem.o nsproxy.o srcu.o \
Pavel Emelyanov58bfdd6d2008-02-08 04:18:21 -080012 notifier.o ksysfs.o pm_qos_params.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Eric W. Biedermanc1cb8e42007-10-19 18:23:25 -060014obj-$(CONFIG_SYSCTL) += sysctl_check.o
Ingo Molnar8637c092006-07-03 00:24:38 -070015obj-$(CONFIG_STACKTRACE) += stacktrace.o
john stultzad596172006-06-26 00:25:06 -070016obj-y += time/
Ingo Molnar408894e2006-01-09 15:59:20 -080017obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Ingo Molnarfbb9ce952006-07-03 00:24:50 -070018obj-$(CONFIG_LOCKDEP) += lockdep.o
Ingo Molnara8f24a32006-07-03 00:24:52 -070019ifeq ($(CONFIG_PROC_FS),y)
20obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
21endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070022obj-$(CONFIG_FUTEX) += futex.o
Ingo Molnar34f192c2006-03-27 01:16:24 -080023ifeq ($(CONFIG_COMPAT),y)
24obj-$(CONFIG_FUTEX) += futex_compat.o
25endif
Ingo Molnar23f78d4a2006-06-27 02:54:53 -070026obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
Ingo Molnare7eebaf2006-06-27 02:54:55 -070027obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
Thomas Gleixner61a87122006-06-27 02:54:56 -070028obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070029obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
30obj-$(CONFIG_SMP) += cpu.o spinlock.o
Ingo Molnarfb1c8f92005-09-10 00:25:56 -070031obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
Ingo Molnar8a25d5d2006-07-03 00:24:54 -070032obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070033obj-$(CONFIG_UID16) += uid16.o
34obj-$(CONFIG_MODULES) += module.o
35obj-$(CONFIG_KALLSYMS) += kallsyms.o
36obj-$(CONFIG_PM) += power/
37obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
Eric W. Biedermandc009d92005-06-25 14:57:52 -070038obj-$(CONFIG_KEXEC) += kexec.o
Arjan van de Ven6dab2772008-01-30 13:33:08 +010039obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070040obj-$(CONFIG_COMPAT) += compat.o
Paul Menageddbcc7e2007-10-18 23:39:30 -070041obj-$(CONFIG_CGROUPS) += cgroup.o
Paul Menage006cb992007-10-18 23:39:43 -070042obj-$(CONFIG_CGROUP_DEBUG) += cgroup_debug.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070043obj-$(CONFIG_CPUSETS) += cpuset.o
Serge E. Hallyn858d72e2007-10-18 23:39:45 -070044obj-$(CONFIG_CGROUP_NS) += ns_cgroup.o
Pavel Emelyanovaee16ce2008-02-08 04:18:23 -080045obj-$(CONFIG_UTS_NS) += utsname.o
46obj-$(CONFIG_USER_NS) += user_namespace.o
Pavel Emelyanov74bd59b2008-02-08 04:18:24 -080047obj-$(CONFIG_PID_NS) += pid_namespace.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070048obj-$(CONFIG_IKCONFIG) += configs.o
Pavel Emelianove552b662008-02-07 00:13:49 -080049obj-$(CONFIG_RESOURCE_COUNTERS) += res_counter.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070050obj-$(CONFIG_STOP_MACHINE) += stop_machine.o
Ananth N Mavinakayanahalli8c1c9352008-01-30 13:32:53 +010051obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
David Woodhousefe7752b2005-12-15 18:33:52 +000052obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070053obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
Al Viro74c3cbe2007-07-22 08:04:18 -040054obj-$(CONFIG_AUDIT_TREE) += audit_tree.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070055obj-$(CONFIG_KPROBES) += kprobes.o
Ingo Molnar8446f1d2005-09-06 15:16:27 -070056obj-$(CONFIG_DETECT_SOFTLOCKUP) += softlockup.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070057obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
58obj-$(CONFIG_SECCOMP) += seccomp.o
Paul E. McKenneya241ec62005-10-30 15:03:12 -080059obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
Paul E. McKenneye260be62008-01-25 21:08:24 +010060obj-$(CONFIG_CLASSIC_RCU) += rcuclassic.o
61obj-$(CONFIG_PREEMPT_RCU) += rcupreempt.o
62ifeq ($(CONFIG_PREEMPT_RCU),y)
63obj-$(CONFIG_RCU_TRACE) += rcupreempt_trace.o
64endif
Jens Axboeb86ff9812006-03-23 19:56:55 +010065obj-$(CONFIG_RELAY) += relay.o
Eric W. Biederman39732ac2007-02-14 00:33:58 -080066obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
Shailabh Nagarca74e922006-07-14 00:24:36 -070067obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
Jay Lanf3cef7a2006-09-30 23:28:55 -070068obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
Mathieu Desnoyers8256e472007-10-18 23:41:06 -070069obj-$(CONFIG_MARKERS) += marker.o
Arjan van de Ven97455122008-01-25 21:08:34 +010070obj-$(CONFIG_LATENCYTOP) += latencytop.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070071
Anton Blanchard7d12e522005-05-05 16:15:11 -070072ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070073# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
74# needed for x86 only. Why this used to be enabled for all architectures is beyond
75# me. I suspect most platforms don't need this, but until we know that for sure
76# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
77# to get a correct value for the wait-channel (WCHAN in ps). --davidm
78CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
79endif
80
81$(obj)/configs.o: $(obj)/config_data.h
82
83# config_data.h contains the same information as ikconfig.h but gzipped.
84# Info from config_data can be extracted from /proc/config*
85targets += config_data.gz
86$(obj)/config_data.gz: .config FORCE
87 $(call if_changed,gzip)
88
89quiet_cmd_ikconfiggz = IKCFG $@
90 cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
91targets += config_data.h
92$(obj)/config_data.h: $(obj)/config_data.gz FORCE
93 $(call if_changed,ikconfiggz)