Makefile 2.0 KB
Newer Older
L
Linus Torvalds 已提交
1
#
I
Ingo Molnar 已提交
2
# Makefile for x86-compatible CPU details, features and quirks
L
Linus Torvalds 已提交
3 4
#

5 6 7
# Don't trace early stages of a secondary CPU boot
ifdef CONFIG_FUNCTION_TRACER
CFLAGS_REMOVE_common.o = -pg
8
CFLAGS_REMOVE_perf_event.o = -pg
9 10
endif

11 12 13 14
# Make sure load_percpu_segment has no stackprotector
nostackp := $(call cc-option, -fno-stack-protector)
CFLAGS_common.o		:= $(nostackp)

15
obj-y			:= intel_cacheinfo.o scattered.o topology.o
16
obj-y			+= common.o
17
obj-y			+= rdrand.o
18
obj-y			+= match.o
L
Linus Torvalds 已提交
19

20
obj-$(CONFIG_PROC_FS)	+= proc.o
21
obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
22

23
obj-$(CONFIG_X86_32)	+= bugs.o
Y
Yinghai Lu 已提交
24
obj-$(CONFIG_X86_64)	+= bugs_64.o
25

Y
Yinghai Lu 已提交
26
obj-$(CONFIG_CPU_SUP_INTEL)		+= intel.o
Y
Yinghai Lu 已提交
27
obj-$(CONFIG_CPU_SUP_AMD)		+= amd.o
28
obj-$(CONFIG_CPU_SUP_CYRIX_32)		+= cyrix.o
29
obj-$(CONFIG_CPU_SUP_CENTAUR)		+= centaur.o
30 31
obj-$(CONFIG_CPU_SUP_TRANSMETA_32)	+= transmeta.o
obj-$(CONFIG_CPU_SUP_UMC_32)		+= umc.o
L
Linus Torvalds 已提交
32

33
obj-$(CONFIG_PERF_EVENTS)		+= perf_event.o
34

35
ifdef CONFIG_PERF_EVENTS
36
obj-$(CONFIG_CPU_SUP_AMD)		+= perf_event_amd.o perf_event_amd_uncore.o
37 38 39
ifdef CONFIG_AMD_IOMMU
obj-$(CONFIG_CPU_SUP_AMD)		+= perf_event_amd_iommu.o
endif
40
obj-$(CONFIG_CPU_SUP_INTEL)		+= perf_event_p6.o perf_event_knc.o perf_event_p4.o
41
obj-$(CONFIG_CPU_SUP_INTEL)		+= perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o
42
obj-$(CONFIG_CPU_SUP_INTEL)		+= perf_event_intel_rapl.o
43 44 45 46 47

obj-$(CONFIG_PERF_EVENTS_INTEL_UNCORE)	+= perf_event_intel_uncore.o \
					   perf_event_intel_uncore_snb.o \
					   perf_event_intel_uncore_snbep.o \
					   perf_event_intel_uncore_nhmex.o
48 49
endif

50

I
Ingo Molnar 已提交
51 52
obj-$(CONFIG_X86_MCE)			+= mcheck/
obj-$(CONFIG_MTRR)			+= mtrr/
53
obj-$(CONFIG_MICROCODE)			+= microcode/
I
Ingo Molnar 已提交
54

55
obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o perf_event_amd_ibs.o
56

57 58
obj-$(CONFIG_HYPERVISOR_GUEST)		+= vmware.o hypervisor.o mshyperv.o

59
ifdef CONFIG_X86_FEATURE_NAMES
60
quiet_cmd_mkcapflags = MKCAP   $@
61
      cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@
62

A
Al Viro 已提交
63
cpufeature = $(src)/../../include/asm/cpufeature.h
64 65

targets += capflags.c
66
$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE
67
	$(call if_changed,mkcapflags)
68
endif