Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
b9ee979e | 5 | obj-y = fork.o exec_domain.o panic.o \ |
5cee9645 TG |
6 | cpu.o exit.o softirq.o resource.o \ |
7 | sysctl.o sysctl_binary.o capability.o ptrace.o user.o \ | |
e73f8959 | 8 | signal.o sys.o kmod.o workqueue.o pid.o task_work.o \ |
5cee9645 TG |
9 | extable.o params.o \ |
10 | kthread.o sys_ni.o nsproxy.o \ | |
15d94b82 | 11 | notifier.o ksysfs.o cred.o reboot.o \ |
dbec2846 | 12 | async.o range.o smpboot.o ucount.o |
2813893f IM |
13 | |
14 | obj-$(CONFIG_MULTIUSER) += groups.o | |
029632fb | 15 | |
606576ce | 16 | ifdef CONFIG_FUNCTION_TRACER |
e11b956e | 17 | # Do not trace internal ftrace files |
c0a80c0c | 18 | CFLAGS_REMOVE_irq_work.o = $(CC_FLAGS_FTRACE) |
1d09daa5 SR |
19 | endif |
20 | ||
5c9a8750 DV |
21 | # Prevents flicker of uninteresting __do_softirq()/__local_bh_disable_ip() |
22 | # in coverage traces. | |
23 | KCOV_INSTRUMENT_softirq.o := n | |
24 | # These are called from save_stack_trace() on slub debug path, | |
25 | # and produce insane amounts of uninteresting coverage. | |
26 | KCOV_INSTRUMENT_module.o := n | |
27 | KCOV_INSTRUMENT_extable.o := n | |
28 | # Don't self-instrument. | |
29 | KCOV_INSTRUMENT_kcov.o := n | |
30 | KASAN_SANITIZE_kcov.o := n | |
31 | ||
58edae3a AK |
32 | # cond_syscall is currently not LTO compatible |
33 | CFLAGS_sys_ni.o = $(DISABLE_LTO) | |
34 | ||
391e43da | 35 | obj-y += sched/ |
01768b42 | 36 | obj-y += locking/ |
dae5cbc2 | 37 | obj-y += power/ |
b9ee979e | 38 | obj-y += printk/ |
0244ad00 | 39 | obj-y += irq/ |
4102adab | 40 | obj-y += rcu/ |
b700e7f0 | 41 | obj-y += livepatch/ |
391e43da | 42 | |
1e142b29 | 43 | obj-$(CONFIG_CHECKPOINT_RESTORE) += kcmp.o |
8174f150 | 44 | obj-$(CONFIG_FREEZER) += freezer.o |
b03f6489 | 45 | obj-$(CONFIG_PROFILING) += profile.o |
8637c099 | 46 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
ad596171 | 47 | obj-y += time/ |
1da177e4 | 48 | obj-$(CONFIG_FUTEX) += futex.o |
34f192c6 IM |
49 | ifeq ($(CONFIG_COMPAT),y) |
50 | obj-$(CONFIG_FUTEX) += futex_compat.o | |
51 | endif | |
1da177e4 | 52 | obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o |
351f8f8e | 53 | obj-$(CONFIG_SMP) += smp.o |
9316fcac | 54 | ifneq ($(CONFIG_SMP),y) |
53ce3d95 AM |
55 | obj-y += up.o |
56 | endif | |
1da177e4 LT |
57 | obj-$(CONFIG_UID16) += uid16.o |
58 | obj-$(CONFIG_MODULES) += module.o | |
b56e5a17 | 59 | obj-$(CONFIG_MODULE_SIG) += module_signing.o |
1da177e4 | 60 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
1da177e4 | 61 | obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o |
2965faa5 | 62 | obj-$(CONFIG_KEXEC_CORE) += kexec_core.o |
dc009d92 | 63 | obj-$(CONFIG_KEXEC) += kexec.o |
a43cac0d | 64 | obj-$(CONFIG_KEXEC_FILE) += kexec_file.o |
6dab2778 | 65 | obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o |
1da177e4 | 66 | obj-$(CONFIG_COMPAT) += compat.o |
ddbcc7e8 | 67 | obj-$(CONFIG_CGROUPS) += cgroup.o |
dc52ddc0 | 68 | obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o |
49b786ea | 69 | obj-$(CONFIG_CGROUP_PIDS) += cgroup_pids.o |
1da177e4 | 70 | obj-$(CONFIG_CPUSETS) += cpuset.o |
aee16ce7 PE |
71 | obj-$(CONFIG_UTS_NS) += utsname.o |
72 | obj-$(CONFIG_USER_NS) += user_namespace.o | |
74bd59bb | 73 | obj-$(CONFIG_PID_NS) += pid_namespace.o |
1da177e4 | 74 | obj-$(CONFIG_IKCONFIG) += configs.o |
bbf1bb3e | 75 | obj-$(CONFIG_SMP) += stop_machine.o |
8c1c9356 | 76 | obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o |
939a67fc | 77 | obj-$(CONFIG_AUDIT) += audit.o auditfilter.o |
1da177e4 | 78 | obj-$(CONFIG_AUDITSYSCALL) += auditsc.o |
7f492942 | 79 | obj-$(CONFIG_AUDIT_WATCH) += audit_watch.o audit_fsnotify.o |
74c3cbe3 | 80 | obj-$(CONFIG_AUDIT_TREE) += audit_tree.o |
939a67fc | 81 | obj-$(CONFIG_GCOV_KERNEL) += gcov/ |
5c9a8750 | 82 | obj-$(CONFIG_KCOV) += kcov.o |
1da177e4 | 83 | obj-$(CONFIG_KPROBES) += kprobes.o |
c4338209 | 84 | obj-$(CONFIG_KGDB) += debug/ |
e162b39a | 85 | obj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o |
58687acb | 86 | obj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o |
1da177e4 | 87 | obj-$(CONFIG_SECCOMP) += seccomp.o |
b86ff981 | 88 | obj-$(CONFIG_RELAY) += relay.o |
39732acd | 89 | obj-$(CONFIG_SYSCTL) += utsname_sysctl.o |
ca74e92b | 90 | obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o |
f3cef7a9 | 91 | obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o |
97e1c18e | 92 | obj-$(CONFIG_TRACEPOINTS) += tracepoint.o |
9745512c | 93 | obj-$(CONFIG_LATENCYTOP) += latencytop.o |
f43edca7 | 94 | obj-$(CONFIG_ELFCORE) += elfcore.o |
606576ce | 95 | obj-$(CONFIG_FUNCTION_TRACER) += trace/ |
bc0c38d1 | 96 | obj-$(CONFIG_TRACING) += trace/ |
ea632e9f | 97 | obj-$(CONFIG_TRACE_CLOCK) += trace/ |
1155de47 | 98 | obj-$(CONFIG_RING_BUFFER) += trace/ |
870915e0 | 99 | obj-$(CONFIG_TRACEPOINTS) += trace/ |
e360adbe | 100 | obj-$(CONFIG_IRQ_WORK) += irq_work.o |
ab10023e | 101 | obj-$(CONFIG_CPU_PM) += cpu_pm.o |
f89b7755 | 102 | obj-$(CONFIG_BPF) += bpf/ |
fae85b7c BP |
103 | |
104 | obj-$(CONFIG_PERF_EVENTS) += events/ | |
105 | ||
7a041097 | 106 | obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o |
16295bec | 107 | obj-$(CONFIG_PADATA) += padata.o |
93a72052 | 108 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
b77f0f3c | 109 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o |
91d1aa43 | 110 | obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o |
51b1130e | 111 | obj-$(CONFIG_TORTURE_TEST) += torture.o |
5b25b13a | 112 | obj-$(CONFIG_MEMBARRIER) += membarrier.o |
1da177e4 | 113 | |
92281dee DW |
114 | obj-$(CONFIG_HAS_IOMEM) += memremap.o |
115 | ||
1da177e4 LT |
116 | $(obj)/configs.o: $(obj)/config_data.h |
117 | ||
118 | # config_data.h contains the same information as ikconfig.h but gzipped. | |
119 | # Info from config_data can be extracted from /proc/config* | |
120 | targets += config_data.gz | |
41263fc6 | 121 | $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE |
1da177e4 LT |
122 | $(call if_changed,gzip) |
123 | ||
8370edea | 124 | filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;") |
1da177e4 LT |
125 | targets += config_data.h |
126 | $(obj)/config_data.h: $(obj)/config_data.gz FORCE | |
e78e8f2d | 127 | $(call filechk,ikconfiggz) |