Makefile 1.3 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 addon_cpuid_features.o
Y
Yinghai Lu 已提交
16
obj-y			+= proc.o capflags.o powerflags.o common.o
17
obj-y			+= vmware.o hypervisor.o sched.o mshyperv.o
L
Linus Torvalds 已提交
18

Y
Yinghai Lu 已提交
19 20
obj-$(CONFIG_X86_32)	+= bugs.o cmpxchg.o
obj-$(CONFIG_X86_64)	+= bugs_64.o
21

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

29
obj-$(CONFIG_PERF_EVENTS)		+= perf_event.o
30

I
Ingo Molnar 已提交
31 32 33 34 35
obj-$(CONFIG_X86_MCE)			+= mcheck/
obj-$(CONFIG_MTRR)			+= mtrr/
obj-$(CONFIG_CPU_FREQ)			+= cpufreq/

obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o
36 37 38 39

quiet_cmd_mkcapflags = MKCAP   $@
      cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@

A
Al Viro 已提交
40
cpufeature = $(src)/../../include/asm/cpufeature.h
41 42 43 44

targets += capflags.c
$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.pl FORCE
	$(call if_changed,mkcapflags)