1 # SPDX-License-Identifier: GPL-2.0 2 # CPU tuning section - shared with UML. 3 # Must change only cflags-y (or [yn]), not CFL 4 5 tune = $(call cc-option,-mtune=$(1) 6 7 ifdef CONFIG_CC_IS_CLANG 8 align := -falign-functions=0 $(call 9 else 10 align := -falign-functions=0 -falign 11 endif 12 13 cflags-$(CONFIG_M486SX) += -march=i486 14 cflags-$(CONFIG_M486) += -march=i486 15 cflags-$(CONFIG_M586) += -march=i586 16 cflags-$(CONFIG_M586TSC) += -march=i586 17 cflags-$(CONFIG_M586MMX) += -march=pent 18 cflags-$(CONFIG_M686) += -march=i686 19 cflags-$(CONFIG_MPENTIUMII) += -march=i686 20 cflags-$(CONFIG_MPENTIUMIII) += -march=i686 21 cflags-$(CONFIG_MPENTIUMM) += -march=i686 22 cflags-$(CONFIG_MPENTIUM4) += -march=i686 23 cflags-$(CONFIG_MK6) += -march=k6 24 # Please note, that patches that add -march=at 25 # They make zero difference whatsosever to per 26 cflags-$(CONFIG_MK7) += -march=athl 27 cflags-$(CONFIG_MK8) += $(call cc-o 28 cflags-$(CONFIG_MCRUSOE) += -march=i686 29 cflags-$(CONFIG_MEFFICEON) += -march=i686 30 cflags-$(CONFIG_MWINCHIPC6) += $(call cc-o 31 cflags-$(CONFIG_MWINCHIP3D) += $(call cc-o 32 cflags-$(CONFIG_MCYRIXIII) += $(call cc-o 33 cflags-$(CONFIG_MVIAC3_2) += $(call cc-o 34 cflags-$(CONFIG_MVIAC7) += -march=i686 35 cflags-$(CONFIG_MCORE2) += -march=i686 36 cflags-$(CONFIG_MATOM) += $(call cc-o 37 $(call cc-option,-mtune=atom,$(call cc 38 39 # AMD Elan support 40 cflags-$(CONFIG_MELAN) += -march=i486 41 42 # Geode GX1 support 43 cflags-$(CONFIG_MGEODEGX1) += -march=pent 44 cflags-$(CONFIG_MGEODE_LX) += $(call cc-o 45 # add at the end to overwrite eventual tuning 46 # cpu entries 47 cflags-$(CONFIG_X86_GENERIC) += $(call tune 48 49 # Bug fix for binutils: this option is require 50 # binutils from generating NOPL instructions a 51 ifneq ($(CONFIG_X86_P6_NOP),y) 52 cflags-y += $(call cc-o 53 endif
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.