xref: /openbmc/linux/arch/x86/kernel/cpu/Makefile (revision ee08d128)
1f7627e25SThomas Gleixner#
2241771efSIngo Molnar# Makefile for x86-compatible CPU details, features and quirks
3f7627e25SThomas Gleixner#
4f7627e25SThomas Gleixner
50ca59dd9SFrederic Weisbecker# Don't trace early stages of a secondary CPU boot
60ca59dd9SFrederic Weisbeckerifdef CONFIG_FUNCTION_TRACER
70ca59dd9SFrederic WeisbeckerCFLAGS_REMOVE_common.o = -pg
86e3d8330SIngo MolnarCFLAGS_REMOVE_perf_event.o = -pg
90ca59dd9SFrederic Weisbeckerendif
100ca59dd9SFrederic Weisbecker
115416c266SJeremy Fitzhardinge# Make sure load_percpu_segment has no stackprotector
125416c266SJeremy Fitzhardingenostackp := $(call cc-option, -fno-stack-protector)
135416c266SJeremy FitzhardingeCFLAGS_common.o		:= $(nostackp)
145416c266SJeremy Fitzhardinge
152decb194SH. Peter Anvinobj-y			:= intel_cacheinfo.o scattered.o topology.o
16f5017cfaSYinghai Luobj-y			+= proc.o capflags.o powerflags.o common.o
17ee08d128SPeter Zijlstraobj-y			+= vmware.o hypervisor.o mshyperv.o
1849d859d7SH. Peter Anvinobj-y			+= rdrand.o
19644e9cbbSAndi Kleenobj-y			+= match.o
20f7627e25SThomas Gleixner
2190c8f92fSH. Peter Anvinobj-$(CONFIG_X86_32)	+= bugs.o
22f5017cfaSYinghai Luobj-$(CONFIG_X86_64)	+= bugs_64.o
238d02c211SThomas Petazzoni
24879d792bSYinghai Luobj-$(CONFIG_CPU_SUP_INTEL)		+= intel.o
25ff73152cSYinghai Luobj-$(CONFIG_CPU_SUP_AMD)		+= amd.o
268d02c211SThomas Petazzoniobj-$(CONFIG_CPU_SUP_CYRIX_32)		+= cyrix.o
2748f4c485SSebastian Andrzej Siewiorobj-$(CONFIG_CPU_SUP_CENTAUR)		+= centaur.o
288d02c211SThomas Petazzoniobj-$(CONFIG_CPU_SUP_TRANSMETA_32)	+= transmeta.o
298d02c211SThomas Petazzoniobj-$(CONFIG_CPU_SUP_UMC_32)		+= umc.o
30f7627e25SThomas Gleixner
31cdd6c482SIngo Molnarobj-$(CONFIG_PERF_EVENTS)		+= perf_event.o
32241771efSIngo Molnar
33de0428a7SKevin Winchesterifdef CONFIG_PERF_EVENTS
34de0428a7SKevin Winchesterobj-$(CONFIG_CPU_SUP_AMD)		+= perf_event_amd.o
35de0428a7SKevin Winchesterobj-$(CONFIG_CPU_SUP_INTEL)		+= perf_event_p6.o perf_event_p4.o perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o
36de0428a7SKevin Winchesterendif
37de0428a7SKevin Winchester
3827bd0c95SThomas Gleixnerobj-$(CONFIG_X86_MCE)			+= mcheck/
3927bd0c95SThomas Gleixnerobj-$(CONFIG_MTRR)			+= mtrr/
40f7627e25SThomas Gleixner
41b7169166SRobert Richterobj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o perf_event_amd_ibs.o
427414aa41SH. Peter Anvin
437414aa41SH. Peter Anvinquiet_cmd_mkcapflags = MKCAP   $@
447414aa41SH. Peter Anvin      cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@
457414aa41SH. Peter Anvin
46bb898558SAl Virocpufeature = $(src)/../../include/asm/cpufeature.h
477414aa41SH. Peter Anvin
487414aa41SH. Peter Anvintargets += capflags.c
497414aa41SH. Peter Anvin$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.pl FORCE
507414aa41SH. Peter Anvin	$(call if_changed,mkcapflags)
51