Back to home page

LXR

 
 

    


0001 #
0002 # Makefile for the linux kernel.
0003 #
0004 
0005 obj-y     = fork.o exec_domain.o panic.o \
0006             cpu.o exit.o softirq.o resource.o \
0007             sysctl.o sysctl_binary.o capability.o ptrace.o user.o \
0008             signal.o sys.o kmod.o workqueue.o pid.o task_work.o \
0009             extable.o params.o \
0010             kthread.o sys_ni.o nsproxy.o \
0011             notifier.o ksysfs.o cred.o reboot.o \
0012             async.o range.o smpboot.o ucount.o
0013 
0014 obj-$(CONFIG_MULTIUSER) += groups.o
0015 
0016 ifdef CONFIG_FUNCTION_TRACER
0017 # Do not trace internal ftrace files
0018 CFLAGS_REMOVE_irq_work.o = $(CC_FLAGS_FTRACE)
0019 endif
0020 
0021 # Prevents flicker of uninteresting __do_softirq()/__local_bh_disable_ip()
0022 # in coverage traces.
0023 KCOV_INSTRUMENT_softirq.o := n
0024 # These are called from save_stack_trace() on slub debug path,
0025 # and produce insane amounts of uninteresting coverage.
0026 KCOV_INSTRUMENT_module.o := n
0027 KCOV_INSTRUMENT_extable.o := n
0028 # Don't self-instrument.
0029 KCOV_INSTRUMENT_kcov.o := n
0030 KASAN_SANITIZE_kcov.o := n
0031 
0032 # cond_syscall is currently not LTO compatible
0033 CFLAGS_sys_ni.o = $(DISABLE_LTO)
0034 
0035 obj-y += sched/
0036 obj-y += locking/
0037 obj-y += power/
0038 obj-y += printk/
0039 obj-y += irq/
0040 obj-y += rcu/
0041 obj-y += livepatch/
0042 
0043 obj-$(CONFIG_CHECKPOINT_RESTORE) += kcmp.o
0044 obj-$(CONFIG_FREEZER) += freezer.o
0045 obj-$(CONFIG_PROFILING) += profile.o
0046 obj-$(CONFIG_STACKTRACE) += stacktrace.o
0047 obj-y += time/
0048 obj-$(CONFIG_FUTEX) += futex.o
0049 ifeq ($(CONFIG_COMPAT),y)
0050 obj-$(CONFIG_FUTEX) += futex_compat.o
0051 endif
0052 obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
0053 obj-$(CONFIG_SMP) += smp.o
0054 ifneq ($(CONFIG_SMP),y)
0055 obj-y += up.o
0056 endif
0057 obj-$(CONFIG_UID16) += uid16.o
0058 obj-$(CONFIG_MODULES) += module.o
0059 obj-$(CONFIG_MODULE_SIG) += module_signing.o
0060 obj-$(CONFIG_KALLSYMS) += kallsyms.o
0061 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
0062 obj-$(CONFIG_KEXEC_CORE) += kexec_core.o
0063 obj-$(CONFIG_KEXEC) += kexec.o
0064 obj-$(CONFIG_KEXEC_FILE) += kexec_file.o
0065 obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
0066 obj-$(CONFIG_COMPAT) += compat.o
0067 obj-$(CONFIG_CGROUPS) += cgroup.o
0068 obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o
0069 obj-$(CONFIG_CGROUP_PIDS) += cgroup_pids.o
0070 obj-$(CONFIG_CPUSETS) += cpuset.o
0071 obj-$(CONFIG_UTS_NS) += utsname.o
0072 obj-$(CONFIG_USER_NS) += user_namespace.o
0073 obj-$(CONFIG_PID_NS) += pid_namespace.o
0074 obj-$(CONFIG_IKCONFIG) += configs.o
0075 obj-$(CONFIG_SMP) += stop_machine.o
0076 obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
0077 obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
0078 obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
0079 obj-$(CONFIG_AUDIT_WATCH) += audit_watch.o audit_fsnotify.o
0080 obj-$(CONFIG_AUDIT_TREE) += audit_tree.o
0081 obj-$(CONFIG_GCOV_KERNEL) += gcov/
0082 obj-$(CONFIG_KCOV) += kcov.o
0083 obj-$(CONFIG_KPROBES) += kprobes.o
0084 obj-$(CONFIG_KGDB) += debug/
0085 obj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o
0086 obj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o
0087 obj-$(CONFIG_HARDLOCKUP_DETECTOR) += watchdog_hld.o
0088 obj-$(CONFIG_SECCOMP) += seccomp.o
0089 obj-$(CONFIG_RELAY) += relay.o
0090 obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
0091 obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
0092 obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
0093 obj-$(CONFIG_TRACEPOINTS) += tracepoint.o
0094 obj-$(CONFIG_LATENCYTOP) += latencytop.o
0095 obj-$(CONFIG_ELFCORE) += elfcore.o
0096 obj-$(CONFIG_FUNCTION_TRACER) += trace/
0097 obj-$(CONFIG_TRACING) += trace/
0098 obj-$(CONFIG_TRACE_CLOCK) += trace/
0099 obj-$(CONFIG_RING_BUFFER) += trace/
0100 obj-$(CONFIG_TRACEPOINTS) += trace/
0101 obj-$(CONFIG_IRQ_WORK) += irq_work.o
0102 obj-$(CONFIG_CPU_PM) += cpu_pm.o
0103 obj-$(CONFIG_BPF) += bpf/
0104 
0105 obj-$(CONFIG_PERF_EVENTS) += events/
0106 
0107 obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
0108 obj-$(CONFIG_PADATA) += padata.o
0109 obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
0110 obj-$(CONFIG_JUMP_LABEL) += jump_label.o
0111 obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
0112 obj-$(CONFIG_TORTURE_TEST) += torture.o
0113 obj-$(CONFIG_MEMBARRIER) += membarrier.o
0114 
0115 obj-$(CONFIG_HAS_IOMEM) += memremap.o
0116 
0117 $(obj)/configs.o: $(obj)/config_data.h
0118 
0119 targets += config_data.gz
0120 $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
0121         $(call if_changed,gzip)
0122 
0123       filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;")
0124 targets += config_data.h
0125 $(obj)/config_data.h: $(obj)/config_data.gz FORCE
0126         $(call filechk,ikconfiggz)