Makefile 2.2 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6
#
# Makefile for the linux kernel.
#

extra-y 	:= head.o head64.o init_task.o vmlinux.lds
EXTRA_AFLAGS	:= -traditional
7
obj-y	:= process.o signal.o entry.o traps.o irq.o \
L
Linus Torvalds 已提交
8 9
		ptrace.o time.o ioport.o ldt.o setup.o i8259.o sys_x86_64.o \
		x8664_ksyms.o i387.o syscall.o vsyscall.o \
10
		setup64.o bootflag.o e820.o reboot.o quirks.o i8237.o \
11
		pci-dma.o pci-nommu.o alternative.o hpet.o tsc.o bugs.o
L
Linus Torvalds 已提交
12

13
obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
14
obj-$(CONFIG_X86_MCE)		+= mce.o therm_throt.o
L
Linus Torvalds 已提交
15
obj-$(CONFIG_X86_MCE_INTEL)	+= mce_intel.o
16
obj-$(CONFIG_X86_MCE_AMD)	+= mce_amd.o
L
Linus Torvalds 已提交
17
obj-$(CONFIG_MTRR)		+= ../../i386/kernel/cpu/mtrr/
L
Len Brown 已提交
18
obj-$(CONFIG_ACPI)		+= acpi/
L
Linus Torvalds 已提交
19 20 21
obj-$(CONFIG_X86_MSR)		+= msr.o
obj-$(CONFIG_MICROCODE)		+= microcode.o
obj-$(CONFIG_X86_CPUID)		+= cpuid.o
22
obj-$(CONFIG_SMP)		+= smp.o smpboot.o trampoline.o tsc_sync.o
23
obj-y				+= apic.o  nmi.o
24
obj-y				+= io_apic.o mpparse.o genapic.o genapic_flat.o
25
obj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o crash.o
26
obj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
L
Linus Torvalds 已提交
27 28 29 30
obj-$(CONFIG_PM)		+= suspend.o
obj-$(CONFIG_SOFTWARE_SUSPEND)	+= suspend_asm.o
obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
31
obj-$(CONFIG_IOMMU)		+= pci-gart.o aperture.o
32
obj-$(CONFIG_CALGARY_IOMMU)	+= pci-calgary.o tce.o
33
obj-$(CONFIG_SWIOTLB)		+= pci-swiotlb.o
L
Linus Torvalds 已提交
34
obj-$(CONFIG_KPROBES)		+= kprobes.o
A
Andi Kleen 已提交
35
obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer.o
36
obj-$(CONFIG_X86_VSMP)		+= vsmp.o
37
obj-$(CONFIG_K8_NB)		+= k8.o
A
Al Viro 已提交
38
obj-$(CONFIG_AUDIT)		+= audit.o
L
Linus Torvalds 已提交
39 40

obj-$(CONFIG_MODULES)		+= module.o
41
obj-$(CONFIG_PCI)		+= early-quirks.o
L
Linus Torvalds 已提交
42 43 44

obj-y				+= topology.o
obj-y				+= intel_cacheinfo.o
45
obj-y				+= pcspeaker.o
L
Linus Torvalds 已提交
46 47 48

CFLAGS_vsyscall.o		:= $(PROFILING) -g0

49
therm_throt-y                   += ../../i386/kernel/cpu/mcheck/therm_throt.o
L
Linus Torvalds 已提交
50 51
bootflag-y			+= ../../i386/kernel/bootflag.o
cpuid-$(subst m,y,$(CONFIG_X86_CPUID))  += ../../i386/kernel/cpuid.o
52
topology-y                     += ../../i386/kernel/topology.o
L
Linus Torvalds 已提交
53 54 55
microcode-$(subst m,y,$(CONFIG_MICROCODE))  += ../../i386/kernel/microcode.o
intel_cacheinfo-y		+= ../../i386/kernel/cpu/intel_cacheinfo.o
quirks-y			+= ../../i386/kernel/quirks.o
56
i8237-y				+= ../../i386/kernel/i8237.o
57
msr-$(subst m,y,$(CONFIG_X86_MSR))  += ../../i386/kernel/msr.o
58
alternative-y			+= ../../i386/kernel/alternative.o
59
pcspeaker-y			+= ../../i386/kernel/pcspeaker.o