]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
1da177e4 LT |
2 | # |
3 | # Makefile for the linux kernel. | |
4 | # | |
5 | ||
b9ee979e | 6 | obj-y = fork.o exec_domain.o panic.o \ |
5cee9645 TG |
7 | cpu.o exit.o softirq.o resource.o \ |
8 | sysctl.o sysctl_binary.o capability.o ptrace.o user.o \ | |
0ce2c202 | 9 | signal.o sys.o umh.o workqueue.o pid.o task_work.o \ |
5cee9645 TG |
10 | extable.o params.o \ |
11 | kthread.o sys_ni.o nsproxy.o \ | |
15d94b82 | 12 | notifier.o ksysfs.o cred.o reboot.o \ |
dbec2846 | 13 | async.o range.o smpboot.o ucount.o |
2813893f | 14 | |
0ce2c202 | 15 | obj-$(CONFIG_MODULES) += kmod.o |
2813893f | 16 | obj-$(CONFIG_MULTIUSER) += groups.o |
029632fb | 17 | |
606576ce | 18 | ifdef CONFIG_FUNCTION_TRACER |
e11b956e | 19 | # Do not trace internal ftrace files |
c0a80c0c | 20 | CFLAGS_REMOVE_irq_work.o = $(CC_FLAGS_FTRACE) |
1d09daa5 SR |
21 | endif |
22 | ||
5c9a8750 DV |
23 | # Prevents flicker of uninteresting __do_softirq()/__local_bh_disable_ip() |
24 | # in coverage traces. | |
25 | KCOV_INSTRUMENT_softirq.o := n | |
26 | # These are called from save_stack_trace() on slub debug path, | |
27 | # and produce insane amounts of uninteresting coverage. | |
28 | KCOV_INSTRUMENT_module.o := n | |
29 | KCOV_INSTRUMENT_extable.o := n | |
30 | # Don't self-instrument. | |
31 | KCOV_INSTRUMENT_kcov.o := n | |
32 | KASAN_SANITIZE_kcov.o := n | |
33 | ||
58edae3a AK |
34 | # cond_syscall is currently not LTO compatible |
35 | CFLAGS_sys_ni.o = $(DISABLE_LTO) | |
36 | ||
391e43da | 37 | obj-y += sched/ |
01768b42 | 38 | obj-y += locking/ |
dae5cbc2 | 39 | obj-y += power/ |
b9ee979e | 40 | obj-y += printk/ |
0244ad00 | 41 | obj-y += irq/ |
4102adab | 42 | obj-y += rcu/ |
b700e7f0 | 43 | obj-y += livepatch/ |
391e43da | 44 | |
1e142b29 | 45 | obj-$(CONFIG_CHECKPOINT_RESTORE) += kcmp.o |
8174f150 | 46 | obj-$(CONFIG_FREEZER) += freezer.o |
b03f6489 | 47 | obj-$(CONFIG_PROFILING) += profile.o |
8637c099 | 48 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
ad596171 | 49 | obj-y += time/ |
1da177e4 | 50 | obj-$(CONFIG_FUTEX) += futex.o |
34f192c6 IM |
51 | ifeq ($(CONFIG_COMPAT),y) |
52 | obj-$(CONFIG_FUTEX) += futex_compat.o | |
53 | endif | |
1da177e4 | 54 | obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o |
351f8f8e | 55 | obj-$(CONFIG_SMP) += smp.o |
9316fcac | 56 | ifneq ($(CONFIG_SMP),y) |
53ce3d95 AM |
57 | obj-y += up.o |
58 | endif | |
1da177e4 LT |
59 | obj-$(CONFIG_UID16) += uid16.o |
60 | obj-$(CONFIG_MODULES) += module.o | |
b56e5a17 | 61 | obj-$(CONFIG_MODULE_SIG) += module_signing.o |
1da177e4 | 62 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
1da177e4 | 63 | obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o |
692f66f2 | 64 | obj-$(CONFIG_CRASH_CORE) += crash_core.o |
2965faa5 | 65 | obj-$(CONFIG_KEXEC_CORE) += kexec_core.o |
dc009d92 | 66 | obj-$(CONFIG_KEXEC) += kexec.o |
a43cac0d | 67 | obj-$(CONFIG_KEXEC_FILE) += kexec_file.o |
6dab2778 | 68 | obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o |
1da177e4 | 69 | obj-$(CONFIG_COMPAT) += compat.o |
201af4c0 | 70 | obj-$(CONFIG_CGROUPS) += cgroup/ |
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 |
05a4a952 | 87 | obj-$(CONFIG_HARDLOCKUP_DETECTOR_PERF) += watchdog_hld.o |
1da177e4 | 88 | obj-$(CONFIG_SECCOMP) += seccomp.o |
b86ff981 | 89 | obj-$(CONFIG_RELAY) += relay.o |
39732acd | 90 | obj-$(CONFIG_SYSCTL) += utsname_sysctl.o |
ca74e92b | 91 | obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o |
f3cef7a9 | 92 | obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o |
97e1c18e | 93 | obj-$(CONFIG_TRACEPOINTS) += tracepoint.o |
9745512c | 94 | obj-$(CONFIG_LATENCYTOP) += latencytop.o |
f43edca7 | 95 | obj-$(CONFIG_ELFCORE) += elfcore.o |
606576ce | 96 | obj-$(CONFIG_FUNCTION_TRACER) += trace/ |
bc0c38d1 | 97 | obj-$(CONFIG_TRACING) += trace/ |
ea632e9f | 98 | obj-$(CONFIG_TRACE_CLOCK) += trace/ |
1155de47 | 99 | obj-$(CONFIG_RING_BUFFER) += trace/ |
870915e0 | 100 | obj-$(CONFIG_TRACEPOINTS) += trace/ |
e360adbe | 101 | obj-$(CONFIG_IRQ_WORK) += irq_work.o |
ab10023e | 102 | obj-$(CONFIG_CPU_PM) += cpu_pm.o |
f89b7755 | 103 | obj-$(CONFIG_BPF) += bpf/ |
fae85b7c BP |
104 | |
105 | obj-$(CONFIG_PERF_EVENTS) += events/ | |
106 | ||
7a041097 | 107 | obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o |
16295bec | 108 | obj-$(CONFIG_PADATA) += padata.o |
93a72052 | 109 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
b77f0f3c | 110 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o |
91d1aa43 | 111 | obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o |
51b1130e | 112 | obj-$(CONFIG_TORTURE_TEST) += torture.o |
1da177e4 | 113 | |
92281dee DW |
114 | obj-$(CONFIG_HAS_IOMEM) += memremap.o |
115 | ||
1da177e4 LT |
116 | $(obj)/configs.o: $(obj)/config_data.h |
117 | ||
1da177e4 | 118 | targets += config_data.gz |
41263fc6 | 119 | $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE |
1da177e4 LT |
120 | $(call if_changed,gzip) |
121 | ||
8370edea | 122 | filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;") |
1da177e4 LT |
123 | targets += config_data.h |
124 | $(obj)/config_data.h: $(obj)/config_data.gz FORCE | |
e78e8f2d | 125 | $(call filechk,ikconfiggz) |