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 8 9
# Don't trace early stages of a secondary CPU boot
ifdef CONFIG_FUNCTION_TRACER
CFLAGS_REMOVE_common.o = -pg
endif

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

14
obj-y			:= intel_cacheinfo.o addon_cpuid_features.o
Y
Yinghai Lu 已提交
15
obj-y			+= proc.o capflags.o powerflags.o common.o
16
obj-y			+= vmware.o hypervisor.o sched.o
L
Linus Torvalds 已提交
17

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

21 22
obj-$(CONFIG_X86_CPU_DEBUG)		+= cpu_debug.o

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

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

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

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

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

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

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