]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - kernel/Makefile
Merge tag 'for-4.15-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[mirror_ubuntu-bionic-kernel.git] / kernel / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#
3# Makefile for the linux kernel.
4#
5
b9ee979e 6obj-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 15obj-$(CONFIG_MODULES) += kmod.o
2813893f 16obj-$(CONFIG_MULTIUSER) += groups.o
029632fb 17
606576ce 18ifdef CONFIG_FUNCTION_TRACER
e11b956e 19# Do not trace internal ftrace files
c0a80c0c 20CFLAGS_REMOVE_irq_work.o = $(CC_FLAGS_FTRACE)
1d09daa5
SR
21endif
22
5c9a8750
DV
23# Prevents flicker of uninteresting __do_softirq()/__local_bh_disable_ip()
24# in coverage traces.
25KCOV_INSTRUMENT_softirq.o := n
26# These are called from save_stack_trace() on slub debug path,
27# and produce insane amounts of uninteresting coverage.
28KCOV_INSTRUMENT_module.o := n
29KCOV_INSTRUMENT_extable.o := n
30# Don't self-instrument.
31KCOV_INSTRUMENT_kcov.o := n
32KASAN_SANITIZE_kcov.o := n
33
58edae3a
AK
34# cond_syscall is currently not LTO compatible
35CFLAGS_sys_ni.o = $(DISABLE_LTO)
36
391e43da 37obj-y += sched/
01768b42 38obj-y += locking/
dae5cbc2 39obj-y += power/
b9ee979e 40obj-y += printk/
0244ad00 41obj-y += irq/
4102adab 42obj-y += rcu/
b700e7f0 43obj-y += livepatch/
391e43da 44
1e142b29 45obj-$(CONFIG_CHECKPOINT_RESTORE) += kcmp.o
8174f150 46obj-$(CONFIG_FREEZER) += freezer.o
b03f6489 47obj-$(CONFIG_PROFILING) += profile.o
8637c099 48obj-$(CONFIG_STACKTRACE) += stacktrace.o
ad596171 49obj-y += time/
1da177e4 50obj-$(CONFIG_FUTEX) += futex.o
34f192c6
IM
51ifeq ($(CONFIG_COMPAT),y)
52obj-$(CONFIG_FUTEX) += futex_compat.o
53endif
1da177e4 54obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
351f8f8e 55obj-$(CONFIG_SMP) += smp.o
9316fcac 56ifneq ($(CONFIG_SMP),y)
53ce3d95
AM
57obj-y += up.o
58endif
1da177e4
LT
59obj-$(CONFIG_UID16) += uid16.o
60obj-$(CONFIG_MODULES) += module.o
b56e5a17 61obj-$(CONFIG_MODULE_SIG) += module_signing.o
1da177e4 62obj-$(CONFIG_KALLSYMS) += kallsyms.o
1da177e4 63obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
692f66f2 64obj-$(CONFIG_CRASH_CORE) += crash_core.o
2965faa5 65obj-$(CONFIG_KEXEC_CORE) += kexec_core.o
dc009d92 66obj-$(CONFIG_KEXEC) += kexec.o
a43cac0d 67obj-$(CONFIG_KEXEC_FILE) += kexec_file.o
6dab2778 68obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
1da177e4 69obj-$(CONFIG_COMPAT) += compat.o
201af4c0 70obj-$(CONFIG_CGROUPS) += cgroup/
aee16ce7
PE
71obj-$(CONFIG_UTS_NS) += utsname.o
72obj-$(CONFIG_USER_NS) += user_namespace.o
74bd59bb 73obj-$(CONFIG_PID_NS) += pid_namespace.o
1da177e4 74obj-$(CONFIG_IKCONFIG) += configs.o
bbf1bb3e 75obj-$(CONFIG_SMP) += stop_machine.o
8c1c9356 76obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
939a67fc 77obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
1da177e4 78obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
7f492942 79obj-$(CONFIG_AUDIT_WATCH) += audit_watch.o audit_fsnotify.o
74c3cbe3 80obj-$(CONFIG_AUDIT_TREE) += audit_tree.o
939a67fc 81obj-$(CONFIG_GCOV_KERNEL) += gcov/
5c9a8750 82obj-$(CONFIG_KCOV) += kcov.o
1da177e4 83obj-$(CONFIG_KPROBES) += kprobes.o
c4338209 84obj-$(CONFIG_KGDB) += debug/
e162b39a 85obj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o
58687acb 86obj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o
05a4a952 87obj-$(CONFIG_HARDLOCKUP_DETECTOR_PERF) += watchdog_hld.o
1da177e4 88obj-$(CONFIG_SECCOMP) += seccomp.o
b86ff981 89obj-$(CONFIG_RELAY) += relay.o
39732acd 90obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
ca74e92b 91obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
f3cef7a9 92obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
97e1c18e 93obj-$(CONFIG_TRACEPOINTS) += tracepoint.o
9745512c 94obj-$(CONFIG_LATENCYTOP) += latencytop.o
f43edca7 95obj-$(CONFIG_ELFCORE) += elfcore.o
606576ce 96obj-$(CONFIG_FUNCTION_TRACER) += trace/
bc0c38d1 97obj-$(CONFIG_TRACING) += trace/
ea632e9f 98obj-$(CONFIG_TRACE_CLOCK) += trace/
1155de47 99obj-$(CONFIG_RING_BUFFER) += trace/
870915e0 100obj-$(CONFIG_TRACEPOINTS) += trace/
e360adbe 101obj-$(CONFIG_IRQ_WORK) += irq_work.o
ab10023e 102obj-$(CONFIG_CPU_PM) += cpu_pm.o
f89b7755 103obj-$(CONFIG_BPF) += bpf/
fae85b7c
BP
104
105obj-$(CONFIG_PERF_EVENTS) += events/
106
7a041097 107obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
16295bec 108obj-$(CONFIG_PADATA) += padata.o
93a72052 109obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
b77f0f3c 110obj-$(CONFIG_JUMP_LABEL) += jump_label.o
91d1aa43 111obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
51b1130e 112obj-$(CONFIG_TORTURE_TEST) += torture.o
1da177e4 113
92281dee
DW
114obj-$(CONFIG_HAS_IOMEM) += memremap.o
115
1da177e4
LT
116$(obj)/configs.o: $(obj)/config_data.h
117
1da177e4 118targets += 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
123targets += config_data.h
124$(obj)/config_data.h: $(obj)/config_data.gz FORCE
e78e8f2d 125 $(call filechk,ikconfiggz)