xref: /openbmc/linux/arch/x86/kernel/cpu/Makefile (revision 68198dca)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for x86-compatible CPU details, features and quirks
4#
5
6# Don't trace early stages of a secondary CPU boot
7ifdef CONFIG_FUNCTION_TRACER
8CFLAGS_REMOVE_common.o = -pg
9CFLAGS_REMOVE_perf_event.o = -pg
10endif
11
12# If these files are instrumented, boot hangs during the first second.
13KCOV_INSTRUMENT_common.o := n
14KCOV_INSTRUMENT_perf_event.o := n
15
16# Make sure load_percpu_segment has no stackprotector
17nostackp := $(call cc-option, -fno-stack-protector)
18CFLAGS_common.o		:= $(nostackp)
19
20obj-y			:= intel_cacheinfo.o scattered.o topology.o
21obj-y			+= common.o
22obj-y			+= rdrand.o
23obj-y			+= match.o
24obj-y			+= bugs.o
25obj-y			+= aperfmperf.o
26obj-y			+= cpuid-deps.o
27
28obj-$(CONFIG_PROC_FS)	+= proc.o
29obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
30
31obj-$(CONFIG_CPU_SUP_INTEL)		+= intel.o
32obj-$(CONFIG_CPU_SUP_AMD)		+= amd.o
33obj-$(CONFIG_CPU_SUP_CYRIX_32)		+= cyrix.o
34obj-$(CONFIG_CPU_SUP_CENTAUR)		+= centaur.o
35obj-$(CONFIG_CPU_SUP_TRANSMETA_32)	+= transmeta.o
36obj-$(CONFIG_CPU_SUP_UMC_32)		+= umc.o
37
38obj-$(CONFIG_INTEL_RDT)	+= intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_monitor.o intel_rdt_ctrlmondata.o
39
40obj-$(CONFIG_X86_MCE)			+= mcheck/
41obj-$(CONFIG_MTRR)			+= mtrr/
42obj-$(CONFIG_MICROCODE)			+= microcode/
43
44obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o
45
46obj-$(CONFIG_HYPERVISOR_GUEST)		+= vmware.o hypervisor.o mshyperv.o
47
48ifdef CONFIG_X86_FEATURE_NAMES
49quiet_cmd_mkcapflags = MKCAP   $@
50      cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@
51
52cpufeature = $(src)/../../include/asm/cpufeatures.h
53
54targets += capflags.c
55$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE
56	$(call if_changed,mkcapflags)
57endif
58clean-files += capflags.c
59