1# 2# Makefile for x86-compatible CPU details, features and quirks 3# 4 5# Don't trace early stages of a secondary CPU boot 6ifdef CONFIG_FUNCTION_TRACER 7CFLAGS_REMOVE_common.o = -pg 8CFLAGS_REMOVE_perf_event.o = -pg 9endif 10 11# Make sure load_percpu_segment has no stackprotector 12nostackp := $(call cc-option, -fno-stack-protector) 13CFLAGS_common.o := $(nostackp) 14 15obj-y := intel_cacheinfo.o scattered.o topology.o 16obj-y += proc.o capflags.o powerflags.o common.o 17obj-y += vmware.o hypervisor.o sched.o mshyperv.o 18 19obj-$(CONFIG_X86_32) += bugs.o 20obj-$(CONFIG_X86_64) += bugs_64.o 21 22obj-$(CONFIG_CPU_SUP_INTEL) += intel.o 23obj-$(CONFIG_CPU_SUP_AMD) += amd.o 24obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o 25obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o 26obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o 27obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o 28 29obj-$(CONFIG_PERF_EVENTS) += perf_event.o 30 31obj-$(CONFIG_X86_MCE) += mcheck/ 32obj-$(CONFIG_MTRR) += mtrr/ 33obj-$(CONFIG_CPU_FREQ) += cpufreq/ 34 35obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o 36 37quiet_cmd_mkcapflags = MKCAP $@ 38 cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@ 39 40cpufeature = $(src)/../../include/asm/cpufeature.h 41 42targets += capflags.c 43$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.pl FORCE 44 $(call if_changed,mkcapflags) 45