Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
[linux-2.6.git] / arch / x86 / kernel / cpu / Makefile
blobb0684e4a73aa60ae8edee4d3b729de2b663b079c
2 # Makefile for x86-compatible CPU details, features and quirks
5 # Don't trace early stages of a secondary CPU boot
6 ifdef CONFIG_FUNCTION_TRACER
7 CFLAGS_REMOVE_common.o = -pg
8 CFLAGS_REMOVE_perf_event.o = -pg
9 endif
11 # Make sure load_percpu_segment has no stackprotector
12 nostackp := $(call cc-option, -fno-stack-protector)
13 CFLAGS_common.o := $(nostackp)
15 obj-y := intel_cacheinfo.o scattered.o topology.o
16 obj-y += proc.o capflags.o powerflags.o common.o
17 obj-y += rdrand.o
18 obj-y += match.o
20 obj-$(CONFIG_X86_32) += bugs.o
21 obj-$(CONFIG_X86_64) += bugs_64.o
23 obj-$(CONFIG_CPU_SUP_INTEL) += intel.o
24 obj-$(CONFIG_CPU_SUP_AMD) += amd.o
25 obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o
26 obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
27 obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
28 obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
30 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
32 ifdef CONFIG_PERF_EVENTS
33 obj-$(CONFIG_CPU_SUP_AMD) += perf_event_amd.o perf_event_amd_uncore.o
34 obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_p6.o perf_event_knc.o perf_event_p4.o
35 obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o
36 obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_uncore.o
37 endif
39 obj-$(CONFIG_X86_MCE) += mcheck/
40 obj-$(CONFIG_MTRR) += mtrr/
42 obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o perf_event_amd_ibs.o
44 obj-$(CONFIG_HYPERVISOR_GUEST) += vmware.o hypervisor.o mshyperv.o
46 quiet_cmd_mkcapflags = MKCAP $@
47 cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@
49 cpufeature = $(src)/../../include/asm/cpufeature.h
51 targets += capflags.c
52 $(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE
53 $(call if_changed,mkcapflags)