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# If these files are instrumented, boot hangs during the first second. 12KCOV_INSTRUMENT_common.o := n 13KCOV_INSTRUMENT_perf_event.o := n 14 15# Make sure load_percpu_segment has no stackprotector 16nostackp := $(call cc-option, -fno-stack-protector) 17CFLAGS_common.o := $(nostackp) 18 19obj-y := intel_cacheinfo.o scattered.o topology.o 20obj-y += common.o 21obj-y += rdrand.o 22obj-y += match.o 23 24obj-$(CONFIG_PROC_FS) += proc.o 25obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o 26 27obj-$(CONFIG_X86_32) += bugs.o 28obj-$(CONFIG_X86_64) += bugs_64.o 29 30obj-$(CONFIG_CPU_SUP_INTEL) += intel.o 31obj-$(CONFIG_CPU_SUP_AMD) += amd.o 32obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o 33obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o 34obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o 35obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o 36 37obj-$(CONFIG_X86_MCE) += mcheck/ 38obj-$(CONFIG_MTRR) += mtrr/ 39obj-$(CONFIG_MICROCODE) += microcode/ 40 41obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o 42 43obj-$(CONFIG_HYPERVISOR_GUEST) += vmware.o hypervisor.o mshyperv.o 44 45ifdef CONFIG_X86_FEATURE_NAMES 46quiet_cmd_mkcapflags = MKCAP $@ 47 cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@ 48 49cpufeature = $(src)/../../include/asm/cpufeatures.h 50 51targets += capflags.c 52$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE 53 $(call if_changed,mkcapflags) 54endif 55clean-files += capflags.c 56