Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
Ingo Molnar | 241771e | 2008-12-03 10:39:53 +0100 | [diff] [blame] | 2 | # Makefile for x86-compatible CPU details, features and quirks |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | # |
| 4 | |
Frederic Weisbecker | 0ca59dd | 2008-12-24 23:30:02 +0100 | [diff] [blame] | 5 | # Don't trace early stages of a secondary CPU boot |
| 6 | ifdef CONFIG_FUNCTION_TRACER |
| 7 | CFLAGS_REMOVE_common.o = -pg |
Ingo Molnar | 6e3d833 | 2009-11-23 10:19:20 +0100 | [diff] [blame^] | 8 | CFLAGS_REMOVE_perf_event.o = -pg |
Frederic Weisbecker | 0ca59dd | 2008-12-24 23:30:02 +0100 | [diff] [blame] | 9 | endif |
| 10 | |
Jeremy Fitzhardinge | 5416c26 | 2009-08-17 12:25:41 -0700 | [diff] [blame] | 11 | # Make sure load_percpu_segment has no stackprotector |
| 12 | nostackp := $(call cc-option, -fno-stack-protector) |
| 13 | CFLAGS_common.o := $(nostackp) |
| 14 | |
Thomas Gleixner | 34d19e2 | 2007-10-23 22:37:23 +0200 | [diff] [blame] | 15 | obj-y := intel_cacheinfo.o addon_cpuid_features.o |
Yinghai Lu | f5017cf | 2008-09-04 20:09:14 -0700 | [diff] [blame] | 16 | obj-y += proc.o capflags.o powerflags.o common.o |
Peter Zijlstra | 47fe38f | 2009-09-02 13:49:18 +0200 | [diff] [blame] | 17 | obj-y += vmware.o hypervisor.o sched.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Yinghai Lu | f5017cf | 2008-09-04 20:09:14 -0700 | [diff] [blame] | 19 | obj-$(CONFIG_X86_32) += bugs.o cmpxchg.o |
| 20 | obj-$(CONFIG_X86_64) += bugs_64.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 21 | |
Jaswinder Singh Rajput | 9b779ed | 2009-03-10 15:37:51 +0530 | [diff] [blame] | 22 | obj-$(CONFIG_X86_CPU_DEBUG) += cpu_debug.o |
| 23 | |
Yinghai Lu | 879d792 | 2008-09-09 16:40:37 -0700 | [diff] [blame] | 24 | obj-$(CONFIG_CPU_SUP_INTEL) += intel.o |
Yinghai Lu | ff73152 | 2008-09-07 17:58:56 -0700 | [diff] [blame] | 25 | obj-$(CONFIG_CPU_SUP_AMD) += amd.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 26 | obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o |
Sebastian Andrzej Siewior | 48f4c48 | 2009-03-14 12:24:02 +0100 | [diff] [blame] | 27 | obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 28 | obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 29 | obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 31 | obj-$(CONFIG_PERF_EVENTS) += perf_event.o |
Andi Kleen | 09198e6 | 2007-05-02 19:27:20 +0200 | [diff] [blame] | 32 | |
Ingo Molnar | 241771e | 2008-12-03 10:39:53 +0100 | [diff] [blame] | 33 | obj-$(CONFIG_X86_MCE) += mcheck/ |
| 34 | obj-$(CONFIG_MTRR) += mtrr/ |
| 35 | obj-$(CONFIG_CPU_FREQ) += cpufreq/ |
| 36 | |
| 37 | obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 38 | |
| 39 | quiet_cmd_mkcapflags = MKCAP $@ |
| 40 | cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@ |
| 41 | |
Al Viro | bb89855 | 2008-08-17 21:05:42 -0400 | [diff] [blame] | 42 | cpufeature = $(src)/../../include/asm/cpufeature.h |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 43 | |
| 44 | targets += capflags.c |
| 45 | $(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.pl FORCE |
| 46 | $(call if_changed,mkcapflags) |