# SPDX-License-Identifier: GPL-2.0 # # Makefile for x86-compatible CPU details, features and quirks # # Don't trace early stages of a secondary CPU boot ifdef [31mCONFIG_FUNCTION_TRACER[0m CFLAGS_REMOVE_common.o = -pg CFLAGS_REMOVE_perf_event.o = -pg endif # If these files are instrumented, boot hangs during the first second. KCOV_INSTRUMENT_common.o := n KCOV_INSTRUMENT_perf_event.o := n # Make sure load_percpu_segment has no stackprotector nostackp := $(call cc-option, -fno-stack-protector) CFLAGS_common.o := $(nostackp) obj-y := cacheinfo.o scattered.o topology.o obj-y += common.o obj-y += rdrand.o obj-y += match.o obj-y += bugs.o obj-y += aperfmperf.o obj-y += cpuid-deps.o obj-y += umwait.o obj-$([31mCONFIG_PROC_FS[0m) += proc.o obj-$([31mCONFIG_X86_FEATURE_NAMES[0m) += capflags.o powerflags.o ifdef [31mCONFIG_CPU_SUP_INTEL[0m obj-y += intel.o intel_pconfig.o tsx.o obj-$([31mCONFIG_PM[0m) += intel_epb.o endif obj-$([31mCONFIG_CPU_SUP_AMD[0m) += amd.o obj-$([31mCONFIG_CPU_SUP_HYGON[0m) += hygon.o obj-$([31mCONFIG_CPU_SUP_CYRIX_32[0m) += cyrix.o obj-$([31mCONFIG_CPU_SUP_CENTAUR[0m) += centaur.o obj-$([31mCONFIG_CPU_SUP_TRANSMETA_32[0m) += transmeta.o obj-$([31mCONFIG_CPU_SUP_UMC_32[0m) += umc.o obj-$([31mCONFIG_CPU_SUP_ZHAOXIN[0m) += zhaoxin.o obj-$([31mCONFIG_X86_MCE[0m) += mce/ obj-$([31mCONFIG_MTRR[0m) += mtrr/ obj-$([31mCONFIG_MICROCODE[0m) += microcode/ obj-$([31mCONFIG_X86_CPU_RESCTRL[0m) += resctrl/ obj-$([31mCONFIG_X86_LOCAL_APIC[0m) += perfctr-watchdog.o obj-$([31mCONFIG_HYPERVISOR_GUEST[0m) += vmware.o hypervisor.o mshyperv.o obj-$([31mCONFIG_ACRN_GUEST[0m) += acrn.o ifdef [31mCONFIG_X86_FEATURE_NAMES[0m quiet_cmd_mkcapflags = MKCAP $@ cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@ cpufeature = $(src)/../../include/asm/cpufeatures.h $(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE $(call if_changed,mkcapflags) endif targets += capflags.c |