Restartable sequences: don't clear rseq_cs after c.s.
[deliverable/linux.git] / kernel / Makefile
CommitLineData
1da177e4
LT
1#
2# Makefile for the linux kernel.
3#
4
b9ee979e 5obj-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 \
2813893f
IM
12 async.o range.o smpboot.o
13
14obj-$(CONFIG_MULTIUSER) += groups.o
029632fb 15
606576ce 16ifdef CONFIG_FUNCTION_TRACER
e11b956e 17# Do not trace internal ftrace files
c0a80c0c 18CFLAGS_REMOVE_irq_work.o = $(CC_FLAGS_FTRACE)
1d09daa5
SR
19endif
20
5c9a8750
DV
21# Prevents flicker of uninteresting __do_softirq()/__local_bh_disable_ip()
22# in coverage traces.
23KCOV_INSTRUMENT_softirq.o := n
24# These are called from save_stack_trace() on slub debug path,
25# and produce insane amounts of uninteresting coverage.
26KCOV_INSTRUMENT_module.o := n
27KCOV_INSTRUMENT_extable.o := n
28# Don't self-instrument.
29KCOV_INSTRUMENT_kcov.o := n
30KASAN_SANITIZE_kcov.o := n
31
58edae3a
AK
32# cond_syscall is currently not LTO compatible
33CFLAGS_sys_ni.o = $(DISABLE_LTO)
34
391e43da 35obj-y += sched/
01768b42 36obj-y += locking/
dae5cbc2 37obj-y += power/
b9ee979e 38obj-y += printk/
0244ad00 39obj-y += irq/
4102adab 40obj-y += rcu/
b700e7f0 41obj-y += livepatch/
391e43da 42
1e142b29 43obj-$(CONFIG_CHECKPOINT_RESTORE) += kcmp.o
8174f150 44obj-$(CONFIG_FREEZER) += freezer.o
b03f6489 45obj-$(CONFIG_PROFILING) += profile.o
8637c099 46obj-$(CONFIG_STACKTRACE) += stacktrace.o
ad596171 47obj-y += time/
1da177e4 48obj-$(CONFIG_FUTEX) += futex.o
34f192c6
IM
49ifeq ($(CONFIG_COMPAT),y)
50obj-$(CONFIG_FUTEX) += futex_compat.o
51endif
1da177e4 52obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
351f8f8e 53obj-$(CONFIG_SMP) += smp.o
9316fcac 54ifneq ($(CONFIG_SMP),y)
53ce3d95
AM
55obj-y += up.o
56endif
1da177e4
LT
57obj-$(CONFIG_UID16) += uid16.o
58obj-$(CONFIG_MODULES) += module.o
b56e5a17 59obj-$(CONFIG_MODULE_SIG) += module_signing.o
1da177e4 60obj-$(CONFIG_KALLSYMS) += kallsyms.o
1da177e4 61obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
2965faa5 62obj-$(CONFIG_KEXEC_CORE) += kexec_core.o
dc009d92 63obj-$(CONFIG_KEXEC) += kexec.o
a43cac0d 64obj-$(CONFIG_KEXEC_FILE) += kexec_file.o
6dab2778 65obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
1da177e4 66obj-$(CONFIG_COMPAT) += compat.o
ddbcc7e8 67obj-$(CONFIG_CGROUPS) += cgroup.o
dc52ddc0 68obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o
49b786ea 69obj-$(CONFIG_CGROUP_PIDS) += cgroup_pids.o
1da177e4 70obj-$(CONFIG_CPUSETS) += cpuset.o
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
1da177e4 87obj-$(CONFIG_SECCOMP) += seccomp.o
b86ff981 88obj-$(CONFIG_RELAY) += relay.o
39732acd 89obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
ca74e92b 90obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
f3cef7a9 91obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
97e1c18e 92obj-$(CONFIG_TRACEPOINTS) += tracepoint.o
9745512c 93obj-$(CONFIG_LATENCYTOP) += latencytop.o
f43edca7 94obj-$(CONFIG_ELFCORE) += elfcore.o
606576ce 95obj-$(CONFIG_FUNCTION_TRACER) += trace/
bc0c38d1 96obj-$(CONFIG_TRACING) += trace/
ea632e9f 97obj-$(CONFIG_TRACE_CLOCK) += trace/
1155de47 98obj-$(CONFIG_RING_BUFFER) += trace/
870915e0 99obj-$(CONFIG_TRACEPOINTS) += trace/
e360adbe 100obj-$(CONFIG_IRQ_WORK) += irq_work.o
ab10023e 101obj-$(CONFIG_CPU_PM) += cpu_pm.o
f89b7755 102obj-$(CONFIG_BPF) += bpf/
fae85b7c
BP
103
104obj-$(CONFIG_PERF_EVENTS) += events/
105
7a041097 106obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
16295bec 107obj-$(CONFIG_PADATA) += padata.o
93a72052 108obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
b77f0f3c 109obj-$(CONFIG_JUMP_LABEL) += jump_label.o
91d1aa43 110obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
51b1130e 111obj-$(CONFIG_TORTURE_TEST) += torture.o
5b25b13a 112obj-$(CONFIG_MEMBARRIER) += membarrier.o
1da177e4 113
92281dee 114obj-$(CONFIG_HAS_IOMEM) += memremap.o
91a034ed 115obj-$(CONFIG_RSEQ) += rseq.o
92281dee 116
1da177e4
LT
117$(obj)/configs.o: $(obj)/config_data.h
118
119# config_data.h contains the same information as ikconfig.h but gzipped.
120# Info from config_data can be extracted from /proc/config*
121targets += config_data.gz
41263fc6 122$(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
1da177e4
LT
123 $(call if_changed,gzip)
124
8370edea 125 filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;")
1da177e4
LT
126targets += config_data.h
127$(obj)/config_data.h: $(obj)/config_data.gz FORCE
e78e8f2d 128 $(call filechk,ikconfiggz)
This page took 0.775873 seconds and 5 git commands to generate.