Blame view

kernel/Makefile 5.04 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
  #
  # Makefile for the linux kernel.
  #
b03f6489f   Adrian Bunk   build kernel/prof...
4
  obj-y     = sched.o fork.o exec_domain.o panic.o printk.o \
68f4f1ec0   Max Krasnyansky   sched: Move cpu m...
5
  	    cpu.o exit.o itimer.o time.o softirq.o resource.o \
afa588b26   Eric W. Biederman   sysctl: Separate ...
6
  	    sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
  	    signal.o sys.o kmod.o workqueue.o pid.o \
e260be673   Paul E. McKenney   Preempt-RCU: impl...
8
  	    rcupdate.o extable.o params.o posix-timers.o \
c0a313296   Thomas Gleixner   [PATCH] hrtimer: ...
9
  	    kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
64ac24e73   Matthew Wilcox   Generic semaphore...
10
  	    hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \
22a9d6456   Arjan van de Ven   async: Asynchrono...
11
  	    notifier.o ksysfs.o pm_qos_params.o sched_clock.o cred.o \
b77f0f3c1   Jason Baron   jump label: Reduc...
12
  	    async.o range.o
30639b6af   Alexey Dobriyan   groups: move code...
13
  obj-y += groups.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14

606576ce8   Steven Rostedt   ftrace: rename FT...
15
  ifdef CONFIG_FUNCTION_TRACER
6ec562328   Steven Rostedt   ftrace: use the n...
16
17
18
19
20
21
22
  # Do not trace debug files and internal ftrace files
  CFLAGS_REMOVE_lockdep.o = -pg
  CFLAGS_REMOVE_lockdep_proc.o = -pg
  CFLAGS_REMOVE_mutex-debug.o = -pg
  CFLAGS_REMOVE_rtmutex-debug.o = -pg
  CFLAGS_REMOVE_cgroup-debug.o = -pg
  CFLAGS_REMOVE_sched_clock.o = -pg
e360adbe2   Peter Zijlstra   irq_work: Add gen...
23
  CFLAGS_REMOVE_irq_work.o = -pg
1d09daa55   Steven Rostedt   ftrace: use Makef...
24
  endif
8174f1503   Matt Helsley   container freezer...
25
  obj-$(CONFIG_FREEZER) += freezer.o
b03f6489f   Adrian Bunk   build kernel/prof...
26
  obj-$(CONFIG_PROFILING) += profile.o
88f458e4b   Holger Schurig   sysctl: allow emb...
27
  obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o
8637c0990   Ingo Molnar   [PATCH] lockdep: ...
28
  obj-$(CONFIG_STACKTRACE) += stacktrace.o
ad596171e   John Stultz   [PATCH] Time: Use...
29
  obj-y += time/
408894ee4   Ingo Molnar   [PATCH] mutex sub...
30
  obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
fbb9ce953   Ingo Molnar   [PATCH] lockdep: ...
31
  obj-$(CONFIG_LOCKDEP) += lockdep.o
a8f24a397   Ingo Molnar   [PATCH] lockdep: ...
32
33
34
  ifeq ($(CONFIG_PROC_FS),y)
  obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
  endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
35
  obj-$(CONFIG_FUTEX) += futex.o
34f192c65   Ingo Molnar   [PATCH] lightweig...
36
37
38
  ifeq ($(CONFIG_COMPAT),y)
  obj-$(CONFIG_FUTEX) += futex_compat.o
  endif
23f78d4a0   Ingo Molnar   [PATCH] pi-futex:...
39
  obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
e7eebaf6a   Ingo Molnar   [PATCH] pi-futex:...
40
  obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
61a871228   Thomas Gleixner   [PATCH] pi-futex:...
41
  obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
42
  obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
351f8f8e6   Amerigo Wang   kernel: clean up ...
43
  obj-$(CONFIG_SMP) += smp.o
9316fcacb   Andrew Morton   kernel/up.c: omit...
44
  ifneq ($(CONFIG_SMP),y)
53ce3d956   Andrew Morton   smp_call_function...
45
46
  obj-y += up.o
  endif
68f4f1ec0   Max Krasnyansky   sched: Move cpu m...
47
  obj-$(CONFIG_SMP) += spinlock.o
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
48
  obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
8a25d5deb   Ingo Molnar   [PATCH] lockdep: ...
49
  obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
50
51
52
53
  obj-$(CONFIG_UID16) += uid16.o
  obj-$(CONFIG_MODULES) += module.o
  obj-$(CONFIG_KALLSYMS) += kallsyms.o
  obj-$(CONFIG_PM) += power/
42f5e039c   Rafael J. Wysocki   pm: fix build for...
54
  obj-$(CONFIG_FREEZER) += power/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
55
  obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
dc009d924   Eric W. Biederman   [PATCH] kexec: ad...
56
  obj-$(CONFIG_KEXEC) += kexec.o
6dab27784   Arjan van de Ven   x86: add a simple...
57
  obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
58
  obj-$(CONFIG_COMPAT) += compat.o
ddbcc7e8e   Paul Menage   Task Control Grou...
59
  obj-$(CONFIG_CGROUPS) += cgroup.o
dc52ddc0e   Matt Helsley   container freezer...
60
  obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
61
  obj-$(CONFIG_CPUSETS) += cpuset.o
aee16ce73   Pavel Emelyanov   namespaces: clean...
62
63
  obj-$(CONFIG_UTS_NS) += utsname.o
  obj-$(CONFIG_USER_NS) += user_namespace.o
74bd59bb3   Pavel Emelyanov   namespaces: clean...
64
  obj-$(CONFIG_PID_NS) += pid_namespace.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
65
  obj-$(CONFIG_IKCONFIG) += configs.o
e552b6617   Pavel Emelianov   Memory controller...
66
  obj-$(CONFIG_RESOURCE_COUNTERS) += res_counter.o
bbf1bb3ee   Tejun Heo   cpu_stop: add dum...
67
  obj-$(CONFIG_SMP) += stop_machine.o
8c1c93564   Ananth N Mavinakayanahalli   x86: kprobes: add...
68
  obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
939a67fc4   Eric Paris   Audit: split audi...
69
  obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
70
  obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
939a67fc4   Eric Paris   Audit: split audi...
71
  obj-$(CONFIG_AUDIT_WATCH) += audit_watch.o
74c3cbe33   Al Viro   [PATCH] audit: wa...
72
  obj-$(CONFIG_AUDIT_TREE) += audit_tree.o
939a67fc4   Eric Paris   Audit: split audi...
73
  obj-$(CONFIG_GCOV_KERNEL) += gcov/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
74
  obj-$(CONFIG_KPROBES) += kprobes.o
c43382097   Jason Wessel   Move kernel/kgdb....
75
  obj-$(CONFIG_KGDB) += debug/
e162b39a3   Mandeep Singh Baines   softlockup: decou...
76
  obj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o
58687acba   Don Zickus   lockup_detector: ...
77
  obj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
78
79
  obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
  obj-$(CONFIG_SECCOMP) += seccomp.o
a241ec65a   Paul E. McKenney   [PATCH] RCU tortu...
80
  obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
64db4cfff   Paul E. McKenney   "Tree RCU": scala...
81
  obj-$(CONFIG_TREE_RCU) += rcutree.o
f41d911f8   Paul E. McKenney   rcu: Merge preemp...
82
  obj-$(CONFIG_TREE_PREEMPT_RCU) += rcutree.o
64db4cfff   Paul E. McKenney   "Tree RCU": scala...
83
  obj-$(CONFIG_TREE_RCU_TRACE) += rcutree_trace.o
9b1d82fa1   Paul E. McKenney   rcu: "Tiny RCU", ...
84
  obj-$(CONFIG_TINY_RCU) += rcutiny.o
a57eb940d   Paul E. McKenney   rcu: Add a TINY_P...
85
  obj-$(CONFIG_TINY_PREEMPT_RCU) += rcutiny.o
b86ff981a   Jens Axboe   [PATCH] relay: mi...
86
  obj-$(CONFIG_RELAY) += relay.o
39732acd9   Eric W. Biederman   [PATCH] sysctl: m...
87
  obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
ca74e92b4   Shailabh Nagar   [PATCH] per-task-...
88
  obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
f3cef7a99   Jay Lan   [PATCH] csa: basi...
89
  obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
97e1c18e8   Mathieu Desnoyers   tracing: Kernel T...
90
  obj-$(CONFIG_TRACEPOINTS) += tracepoint.o
9745512ce   Arjan van de Ven   sched: latencytop...
91
  obj-$(CONFIG_LATENCYTOP) += latencytop.o
1fcccbac8   Daisuke HATAYAMA   elf coredump: rep...
92
93
94
  obj-$(CONFIG_BINFMT_ELF) += elfcore.o
  obj-$(CONFIG_COMPAT_BINFMT_ELF) += elfcore.o
  obj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o
606576ce8   Steven Rostedt   ftrace: rename FT...
95
  obj-$(CONFIG_FUNCTION_TRACER) += trace/
bc0c38d13   Steven Rostedt   ftrace: latency t...
96
  obj-$(CONFIG_TRACING) += trace/
56449f437   Ingo Molnar   tracing: make the...
97
  obj-$(CONFIG_X86_DS) += trace/
1155de47c   Paul Mundt   ring-buffer: Make...
98
  obj-$(CONFIG_RING_BUFFER) += trace/
870915e04   Mathieu Desnoyers   tracing: Fix TRAC...
99
  obj-$(CONFIG_TRACEPOINTS) += trace/
6e0534f27   Gregory Haskins   sched: use a 2-d ...
100
  obj-$(CONFIG_SMP) += sched_cpupri.o
e360adbe2   Peter Zijlstra   irq_work: Add gen...
101
  obj-$(CONFIG_IRQ_WORK) += irq_work.o
fae85b7c8   Borislav Petkov   perf: Start the r...
102
103
  
  obj-$(CONFIG_PERF_EVENTS) += events/
7a0410975   Avi Kivity   x86: Fix user ret...
104
  obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
16295bec6   Steffen Klassert   padata: Generic p...
105
  obj-$(CONFIG_PADATA) += padata.o
93a72052b   Olaf Hering   crash_dump: expor...
106
  obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
b77f0f3c1   Jason Baron   jump label: Reduc...
107
  obj-$(CONFIG_JUMP_LABEL) += jump_label.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
108

ae1e9130b   Ingo Molnar   sched: rename SCH...
109
  ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
110
111
112
113
114
115
116
117
118
119
120
121
122
  # According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
  # needed for x86 only.  Why this used to be enabled for all architectures is beyond
  # me.  I suspect most platforms don't need this, but until we know that for sure
  # I turn this off for IA-64 only.  Andreas Schwab says it's also needed on m68k
  # to get a correct value for the wait-channel (WCHAN in ps). --davidm
  CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
  endif
  
  $(obj)/configs.o: $(obj)/config_data.h
  
  # config_data.h contains the same information as ikconfig.h but gzipped.
  # Info from config_data can be extracted from /proc/config*
  targets += config_data.gz
41263fc67   Ben Gardiner   kbuild: fix inter...
123
  $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
124
  	$(call if_changed,gzip)
e78e8f2d8   Peter Foley   kernel: prevent u...
125
        filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;")
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
126
127
  targets += config_data.h
  $(obj)/config_data.h: $(obj)/config_data.gz FORCE
e78e8f2d8   Peter Foley   kernel: prevent u...
128
  	$(call filechk,ikconfiggz)
bdc807871   H. Peter Anvin   avoid overflows i...
129
130
131
132
133
134
135
136
  
  $(obj)/time.o: $(obj)/timeconst.h
  
  quiet_cmd_timeconst  = TIMEC   $@
        cmd_timeconst  = $(PERL) $< $(CONFIG_HZ) > $@
  targets += timeconst.h
  $(obj)/timeconst.h: $(src)/timeconst.pl FORCE
  	$(call if_changed,timeconst)