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 | |
H. Peter Anvin | 2decb19 | 2010-07-19 18:32:04 -0700 | [diff] [blame] | 15 | obj-y := intel_cacheinfo.o scattered.o topology.o |
Josh Triplett | 9def39be | 2013-10-30 08:09:45 -0700 | [diff] [blame] | 16 | obj-y += common.o |
H. Peter Anvin | 49d859d | 2011-07-31 14:02:19 -0700 | [diff] [blame] | 17 | obj-y += rdrand.o |
Andi Kleen | 644e9cb | 2012-01-26 00:09:05 +0100 | [diff] [blame] | 18 | obj-y += match.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Josh Triplett | 39f838e | 2013-10-30 14:21:53 +0000 | [diff] [blame] | 20 | obj-$(CONFIG_PROC_FS) += proc.o |
Josh Triplett | 9def39be | 2013-10-30 08:09:45 -0700 | [diff] [blame] | 21 | obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o |
Josh Triplett | 39f838e | 2013-10-30 14:21:53 +0000 | [diff] [blame] | 22 | |
H. Peter Anvin | 90c8f92 | 2010-07-28 16:53:49 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_X86_32) += bugs.o |
Yinghai Lu | f5017cf | 2008-09-04 20:09:14 -0700 | [diff] [blame] | 24 | obj-$(CONFIG_X86_64) += bugs_64.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 25 | |
Yinghai Lu | 879d792 | 2008-09-09 16:40:37 -0700 | [diff] [blame] | 26 | obj-$(CONFIG_CPU_SUP_INTEL) += intel.o |
Yinghai Lu | ff73152 | 2008-09-07 17:58:56 -0700 | [diff] [blame] | 27 | obj-$(CONFIG_CPU_SUP_AMD) += amd.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 28 | obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o |
Sebastian Andrzej Siewior | 48f4c48 | 2009-03-14 12:24:02 +0100 | [diff] [blame] | 29 | obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 30 | obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o |
Thomas Petazzoni | 8d02c21 | 2008-08-05 11:45:19 +0200 | [diff] [blame] | 31 | obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 33 | obj-$(CONFIG_PERF_EVENTS) += perf_event.o |
Andi Kleen | 09198e6 | 2007-05-02 19:27:20 +0200 | [diff] [blame] | 34 | |
Kevin Winchester | de0428a | 2011-08-30 20:41:05 -0300 | [diff] [blame] | 35 | ifdef CONFIG_PERF_EVENTS |
Jacob Shin | c43ca50 | 2013-04-19 16:34:28 -0500 | [diff] [blame] | 36 | obj-$(CONFIG_CPU_SUP_AMD) += perf_event_amd.o perf_event_amd_uncore.o |
Suravee Suthikulpanit | 7be6296 | 2013-06-05 16:11:49 -0500 | [diff] [blame] | 37 | ifdef CONFIG_AMD_IOMMU |
| 38 | obj-$(CONFIG_CPU_SUP_AMD) += perf_event_amd_iommu.o |
| 39 | endif |
Vince Weaver | e717bf4 | 2012-09-26 14:12:52 -0400 | [diff] [blame] | 40 | obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_p6.o perf_event_knc.o perf_event_p4.o |
Yan, Zheng | 087bfbb | 2012-06-15 14:31:34 +0800 | [diff] [blame] | 41 | obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o |
Yan, Zheng | 92807ffd | 2014-07-30 15:22:13 +0800 | [diff] [blame] | 42 | obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_rapl.o |
Peter Zijlstra | 7fb0f1d | 2014-10-24 09:12:35 +0200 | [diff] [blame] | 43 | |
| 44 | obj-$(CONFIG_PERF_EVENTS_INTEL_UNCORE) += perf_event_intel_uncore.o \ |
| 45 | perf_event_intel_uncore_snb.o \ |
| 46 | perf_event_intel_uncore_snbep.o \ |
| 47 | perf_event_intel_uncore_nhmex.o |
Kevin Winchester | de0428a | 2011-08-30 20:41:05 -0300 | [diff] [blame] | 48 | endif |
| 49 | |
Suravee Suthikulpanit | 7be6296 | 2013-06-05 16:11:49 -0500 | [diff] [blame] | 50 | |
Ingo Molnar | 241771e | 2008-12-03 10:39:53 +0100 | [diff] [blame] | 51 | obj-$(CONFIG_X86_MCE) += mcheck/ |
| 52 | obj-$(CONFIG_MTRR) += mtrr/ |
Borislav Petkov | bad5fa6 | 2013-12-01 18:09:58 +0100 | [diff] [blame] | 53 | obj-$(CONFIG_MICROCODE) += microcode/ |
Ingo Molnar | 241771e | 2008-12-03 10:39:53 +0100 | [diff] [blame] | 54 | |
Robert Richter | b716916 | 2011-09-21 11:30:18 +0200 | [diff] [blame] | 55 | obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o perf_event_amd_ibs.o |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 56 | |
Borislav Petkov | 6276a07 | 2013-03-04 21:20:21 +0100 | [diff] [blame] | 57 | obj-$(CONFIG_HYPERVISOR_GUEST) += vmware.o hypervisor.o mshyperv.o |
| 58 | |
Josh Triplett | 9def39be | 2013-10-30 08:09:45 -0700 | [diff] [blame] | 59 | ifdef CONFIG_X86_FEATURE_NAMES |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 60 | quiet_cmd_mkcapflags = MKCAP $@ |
Rob Landley | 0c0de19 | 2013-04-29 15:05:53 -0700 | [diff] [blame] | 61 | cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@ |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 62 | |
Al Viro | bb89855 | 2008-08-17 21:05:42 -0400 | [diff] [blame] | 63 | cpufeature = $(src)/../../include/asm/cpufeature.h |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 64 | |
| 65 | targets += capflags.c |
Rob Landley | 0c0de19 | 2013-04-29 15:05:53 -0700 | [diff] [blame] | 66 | $(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE |
H. Peter Anvin | 7414aa4 | 2008-08-27 17:56:44 -0700 | [diff] [blame] | 67 | $(call if_changed,mkcapflags) |
Josh Triplett | 9def39be | 2013-10-30 08:09:45 -0700 | [diff] [blame] | 68 | endif |
Bjørn Mork | 280dbc5 | 2014-12-23 12:57:43 +0100 | [diff] [blame] | 69 | clean-files += capflags.c |