Makefile_32.cpu (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) Makefile_32.cpu (eb068e781020cf491333c773fb41820b57bfada4)
1# CPU tuning section - shared with UML.
2# Must change only cflags-y (or [yn]), not CFLAGS! That makes a difference for UML.
3
4#-mtune exists since gcc 3.4
5HAS_MTUNE := $(call cc-option-yn, -mtune=i386)
6ifeq ($(HAS_MTUNE),y)
7tune = $(call cc-option,-mtune=$(1),$(2))
8else
9tune = $(call cc-option,-mcpu=$(1),$(2))
10endif
11
12align := $(cc-option-align)
1# CPU tuning section - shared with UML.
2# Must change only cflags-y (or [yn]), not CFLAGS! That makes a difference for UML.
3
4#-mtune exists since gcc 3.4
5HAS_MTUNE := $(call cc-option-yn, -mtune=i386)
6ifeq ($(HAS_MTUNE),y)
7tune = $(call cc-option,-mtune=$(1),$(2))
8else
9tune = $(call cc-option,-mcpu=$(1),$(2))
10endif
11
12align := $(cc-option-align)
13cflags-$(CONFIG_M386) += -march=i386
14cflags-$(CONFIG_M486) += -march=i486
15cflags-$(CONFIG_M586) += -march=i586
16cflags-$(CONFIG_M586TSC) += -march=i586
17cflags-$(CONFIG_M586MMX) += -march=pentium-mmx
18cflags-$(CONFIG_M686) += -march=i686
19cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call tune,pentium2)
20cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call tune,pentium3)
21cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call tune,pentium3)

--- 50 unchanged lines hidden ---
13cflags-$(CONFIG_M486) += -march=i486
14cflags-$(CONFIG_M586) += -march=i586
15cflags-$(CONFIG_M586TSC) += -march=i586
16cflags-$(CONFIG_M586MMX) += -march=pentium-mmx
17cflags-$(CONFIG_M686) += -march=i686
18cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call tune,pentium2)
19cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call tune,pentium3)
20cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call tune,pentium3)

--- 50 unchanged lines hidden ---