Makefile 1.5 KB
Newer Older
L
Linus Torvalds 已提交
1
#
I
Ingo Molnar 已提交
2
# Makefile for x86-compatible CPU details, features and quirks
L
Linus Torvalds 已提交
3 4
#

5 6 7
# Don't trace early stages of a secondary CPU boot
ifdef CONFIG_FUNCTION_TRACER
CFLAGS_REMOVE_common.o = -pg
8
CFLAGS_REMOVE_perf_event.o = -pg
9 10
endif

D
Dmitry Vyukov 已提交
11 12 13 14
# If these files are instrumented, boot hangs during the first second.
KCOV_INSTRUMENT_common.o := n
KCOV_INSTRUMENT_perf_event.o := n

15 16 17 18
# Make sure load_percpu_segment has no stackprotector
nostackp := $(call cc-option, -fno-stack-protector)
CFLAGS_common.o		:= $(nostackp)

19
obj-y			:= intel_cacheinfo.o scattered.o topology.o
20
obj-y			+= common.o
21
obj-y			+= rdrand.o
22
obj-y			+= match.o
L
Linus Torvalds 已提交
23

24
obj-$(CONFIG_PROC_FS)	+= proc.o
25
obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
26

27
obj-$(CONFIG_X86_32)	+= bugs.o
Y
Yinghai Lu 已提交
28
obj-$(CONFIG_X86_64)	+= bugs_64.o
29

Y
Yinghai Lu 已提交
30
obj-$(CONFIG_CPU_SUP_INTEL)		+= intel.o
Y
Yinghai Lu 已提交
31
obj-$(CONFIG_CPU_SUP_AMD)		+= amd.o
32
obj-$(CONFIG_CPU_SUP_CYRIX_32)		+= cyrix.o
33
obj-$(CONFIG_CPU_SUP_CENTAUR)		+= centaur.o
34 35
obj-$(CONFIG_CPU_SUP_TRANSMETA_32)	+= transmeta.o
obj-$(CONFIG_CPU_SUP_UMC_32)		+= umc.o
L
Linus Torvalds 已提交
36

I
Ingo Molnar 已提交
37 38
obj-$(CONFIG_X86_MCE)			+= mcheck/
obj-$(CONFIG_MTRR)			+= mtrr/
39
obj-$(CONFIG_MICROCODE)			+= microcode/
I
Ingo Molnar 已提交
40

41
obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o
42

43 44
obj-$(CONFIG_HYPERVISOR_GUEST)		+= vmware.o hypervisor.o mshyperv.o

45
ifdef CONFIG_X86_FEATURE_NAMES
46
quiet_cmd_mkcapflags = MKCAP   $@
47
      cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@
48

49
cpufeature = $(src)/../../include/asm/cpufeatures.h
50 51

targets += capflags.c
52
$(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE
53
	$(call if_changed,mkcapflags)
54
endif
55
clean-files += capflags.c