11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for the linux kernel. 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 51da177e4SLinus Torvaldsobj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \ 61da177e4SLinus Torvalds exit.o itimer.o time.o softirq.o resource.o \ 71da177e4SLinus Torvalds sysctl.o capability.o ptrace.o timer.o user.o \ 81da177e4SLinus Torvalds signal.o sys.o kmod.o workqueue.o pid.o \ 9fd279197SAdrian Bunk rcupdate.o extable.o params.o posix-timers.o \ 10c0a31329SThomas Gleixner kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \ 11c0a31329SThomas Gleixner hrtimer.o 121da177e4SLinus Torvalds 13408894eeSIngo Molnarobj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o 141da177e4SLinus Torvaldsobj-$(CONFIG_FUTEX) += futex.o 15*34f192c6SIngo Molnarifeq ($(CONFIG_COMPAT),y) 16*34f192c6SIngo Molnarobj-$(CONFIG_FUTEX) += futex_compat.o 17*34f192c6SIngo Molnarendif 181da177e4SLinus Torvaldsobj-$(CONFIG_GENERIC_ISA_DMA) += dma.o 191da177e4SLinus Torvaldsobj-$(CONFIG_SMP) += cpu.o spinlock.o 20fb1c8f93SIngo Molnarobj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o 211da177e4SLinus Torvaldsobj-$(CONFIG_UID16) += uid16.o 221da177e4SLinus Torvaldsobj-$(CONFIG_MODULES) += module.o 23fd279197SAdrian Bunkobj-$(CONFIG_OBSOLETE_INTERMODULE) += intermodule.o 241da177e4SLinus Torvaldsobj-$(CONFIG_KALLSYMS) += kallsyms.o 251da177e4SLinus Torvaldsobj-$(CONFIG_PM) += power/ 261da177e4SLinus Torvaldsobj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o 27dc009d92SEric W. Biedermanobj-$(CONFIG_KEXEC) += kexec.o 281da177e4SLinus Torvaldsobj-$(CONFIG_COMPAT) += compat.o 291da177e4SLinus Torvaldsobj-$(CONFIG_CPUSETS) += cpuset.o 301da177e4SLinus Torvaldsobj-$(CONFIG_IKCONFIG) += configs.o 311da177e4SLinus Torvaldsobj-$(CONFIG_STOP_MACHINE) += stop_machine.o 32fe7752baSDavid Woodhouseobj-$(CONFIG_AUDIT) += audit.o auditfilter.o 331da177e4SLinus Torvaldsobj-$(CONFIG_AUDITSYSCALL) += auditsc.o 341da177e4SLinus Torvaldsobj-$(CONFIG_KPROBES) += kprobes.o 351da177e4SLinus Torvaldsobj-$(CONFIG_SYSFS) += ksysfs.o 368446f1d3SIngo Molnarobj-$(CONFIG_DETECT_SOFTLOCKUP) += softlockup.o 371da177e4SLinus Torvaldsobj-$(CONFIG_GENERIC_HARDIRQS) += irq/ 381da177e4SLinus Torvaldsobj-$(CONFIG_SECCOMP) += seccomp.o 39a241ec65SPaul E. McKenneyobj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o 40b86ff981SJens Axboeobj-$(CONFIG_RELAY) += relay.o 411da177e4SLinus Torvalds 427d12e522SAnton Blanchardifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y) 431da177e4SLinus Torvalds# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is 441da177e4SLinus Torvalds# needed for x86 only. Why this used to be enabled for all architectures is beyond 451da177e4SLinus Torvalds# me. I suspect most platforms don't need this, but until we know that for sure 461da177e4SLinus Torvalds# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k 471da177e4SLinus Torvalds# to get a correct value for the wait-channel (WCHAN in ps). --davidm 481da177e4SLinus TorvaldsCFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer 491da177e4SLinus Torvaldsendif 501da177e4SLinus Torvalds 511da177e4SLinus Torvalds$(obj)/configs.o: $(obj)/config_data.h 521da177e4SLinus Torvalds 531da177e4SLinus Torvalds# config_data.h contains the same information as ikconfig.h but gzipped. 541da177e4SLinus Torvalds# Info from config_data can be extracted from /proc/config* 551da177e4SLinus Torvaldstargets += config_data.gz 561da177e4SLinus Torvalds$(obj)/config_data.gz: .config FORCE 571da177e4SLinus Torvalds $(call if_changed,gzip) 581da177e4SLinus Torvalds 591da177e4SLinus Torvaldsquiet_cmd_ikconfiggz = IKCFG $@ 601da177e4SLinus Torvalds cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@ 611da177e4SLinus Torvaldstargets += config_data.h 621da177e4SLinus Torvalds$(obj)/config_data.h: $(obj)/config_data.gz FORCE 631da177e4SLinus Torvalds $(call if_changed,ikconfiggz) 64