Makefile 1.5 KB

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