xref: /openbmc/linux/arch/x86/kernel/cpu/Makefile (revision 28efb0046512e8a13ed9f9bdf0d68d10bbfbe9cf)
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
23obj-y			+= bugs.o
24obj-$(CONFIG_CPU_FREQ)	+= aperfmperf.o
25
26obj-$(CONFIG_PROC_FS)	+= proc.o
27obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
28
29obj-$(CONFIG_CPU_SUP_INTEL)		+= intel.o
30obj-$(CONFIG_CPU_SUP_AMD)		+= amd.o
31obj-$(CONFIG_CPU_SUP_CYRIX_32)		+= cyrix.o
32obj-$(CONFIG_CPU_SUP_CENTAUR)		+= centaur.o
33obj-$(CONFIG_CPU_SUP_TRANSMETA_32)	+= transmeta.o
34obj-$(CONFIG_CPU_SUP_UMC_32)		+= umc.o
35
36obj-$(CONFIG_INTEL_RDT)	+= intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_monitor.o intel_rdt_ctrlmondata.o
37
38obj-$(CONFIG_X86_MCE)			+= mcheck/
39obj-$(CONFIG_MTRR)			+= mtrr/
40obj-$(CONFIG_MICROCODE)			+= microcode/
41
42obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o
43
44obj-$(CONFIG_HYPERVISOR_GUEST)		+= vmware.o hypervisor.o mshyperv.o
45
46ifdef CONFIG_X86_FEATURE_NAMES
47quiet_cmd_mkcapflags = MKCAP   $@
48      cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@
49
50cpufeature = $(src)/../../include/asm/cpufeatures.h
51
52targets += capflags.c
53$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE
54	$(call if_changed,mkcapflags)
55endif
56clean-files += capflags.c
57