blob: 1d2cb383410ebef206fb48e2ccecbe8fd03f90ce [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
Ingo Molnar241771e2008-12-03 10:39:53 +01002# Makefile for x86-compatible CPU details, features and quirks
Linus Torvalds1da177e2005-04-16 15:20:36 -07003#
4
Frederic Weisbecker0ca59dd2008-12-24 23:30:02 +01005# Don't trace early stages of a secondary CPU boot
6ifdef CONFIG_FUNCTION_TRACER
7CFLAGS_REMOVE_common.o = -pg
Ingo Molnar6e3d8332009-11-23 10:19:20 +01008CFLAGS_REMOVE_perf_event.o = -pg
Frederic Weisbecker0ca59dd2008-12-24 23:30:02 +01009endif
10
Jeremy Fitzhardinge5416c262009-08-17 12:25:41 -070011# Make sure load_percpu_segment has no stackprotector
12nostackp := $(call cc-option, -fno-stack-protector)
13CFLAGS_common.o := $(nostackp)
14
Thomas Gleixner34d19e22007-10-23 22:37:23 +020015obj-y := intel_cacheinfo.o addon_cpuid_features.o
Yinghai Luf5017cf2008-09-04 20:09:14 -070016obj-y += proc.o capflags.o powerflags.o common.o
Peter Zijlstra47fe38f2009-09-02 13:49:18 +020017obj-y += vmware.o hypervisor.o sched.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Yinghai Luf5017cf2008-09-04 20:09:14 -070019obj-$(CONFIG_X86_32) += bugs.o cmpxchg.o
20obj-$(CONFIG_X86_64) += bugs_64.o
Thomas Petazzoni8d02c212008-08-05 11:45:19 +020021
Jaswinder Singh Rajput9b779ed2009-03-10 15:37:51 +053022obj-$(CONFIG_X86_CPU_DEBUG) += cpu_debug.o
23
Yinghai Lu879d7922008-09-09 16:40:37 -070024obj-$(CONFIG_CPU_SUP_INTEL) += intel.o
Yinghai Luff731522008-09-07 17:58:56 -070025obj-$(CONFIG_CPU_SUP_AMD) += amd.o
Thomas Petazzoni8d02c212008-08-05 11:45:19 +020026obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o
Sebastian Andrzej Siewior48f4c482009-03-14 12:24:02 +010027obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
Thomas Petazzoni8d02c212008-08-05 11:45:19 +020028obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
Thomas Petazzoni8d02c212008-08-05 11:45:19 +020029obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
Ingo Molnarcdd6c482009-09-21 12:02:48 +020031obj-$(CONFIG_PERF_EVENTS) += perf_event.o
Andi Kleen09198e62007-05-02 19:27:20 +020032
Ingo Molnar241771e2008-12-03 10:39:53 +010033obj-$(CONFIG_X86_MCE) += mcheck/
34obj-$(CONFIG_MTRR) += mtrr/
35obj-$(CONFIG_CPU_FREQ) += cpufreq/
36
37obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
H. Peter Anvin7414aa42008-08-27 17:56:44 -070038
39quiet_cmd_mkcapflags = MKCAP $@
40 cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@
41
Al Virobb898552008-08-17 21:05:42 -040042cpufeature = $(src)/../../include/asm/cpufeature.h
H. Peter Anvin7414aa42008-08-27 17:56:44 -070043
44targets += capflags.c
45$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.pl FORCE
46 $(call if_changed,mkcapflags)