8d02c2110b
This patch adds some configuration options that allow to compile out CPU vendor-specific code in x86 kernels (in arch/x86/kernel/cpu). The new configuration options are only visible when CONFIG_EMBEDDED is selected, as they are mostly interesting for space savings reasons. An example of size saving, on x86 with only Intel CPU support: text data bss dec hex filename 1125479 118760 212992 1457231 163c4f vmlinux.old 1121355 116536 212992 1450883 162383 vmlinux -4124 -2224 0 -6348 -18CC +/- However, I'm not exactly sure that the Kconfig wording is correct with regard to !64BIT / 64BIT. [ mingo@elte.hu: convert macro to inline ] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
26 lines
788 B
Makefile
26 lines
788 B
Makefile
#
|
|
# Makefile for x86-compatible CPU details and quirks
|
|
#
|
|
|
|
obj-y := intel_cacheinfo.o addon_cpuid_features.o
|
|
obj-y += proc.o feature_names.o
|
|
|
|
obj-$(CONFIG_X86_32) += common.o bugs.o cmpxchg.o
|
|
obj-$(CONFIG_X86_64) += common_64.o bugs_64.o
|
|
|
|
obj-$(CONFIG_CPU_SUP_AMD_32) += amd.o
|
|
obj-$(CONFIG_CPU_SUP_AMD_64) += amd_64.o
|
|
obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o
|
|
obj-$(CONFIG_CPU_SUP_CENTAUR_32) += centaur.o
|
|
obj-$(CONFIG_CPU_SUP_CENTAUR_64) += centaur_64.o
|
|
obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
|
|
obj-$(CONFIG_CPU_SUP_INTEL_32) += intel.o
|
|
obj-$(CONFIG_CPU_SUP_INTEL_64) += intel_64.o
|
|
obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
|
|
|
|
obj-$(CONFIG_X86_MCE) += mcheck/
|
|
obj-$(CONFIG_MTRR) += mtrr/
|
|
obj-$(CONFIG_CPU_FREQ) += cpufreq/
|
|
|
|
obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
|