summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Makefile
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-08-20 20:55:36 -0400
committerScott Wood <scottwood@freescale.com>2013-08-20 20:55:36 -0400
commit01718ba6ec30013c7d47084876b9c16471b291af (patch)
tree5ae076f618a20331083c85efa85f72cc1a7cb146 /arch/powerpc/Makefile
parentf49596a4cf4753d13951608f24f939a59fdcc653 (diff)
powerpc/booke64: Use appropriate -mcpu
By default use -mcpu=powerpc64 rather than -mtune=power7 Add options for e5500/e6500, with fallbacks for older compilers. Hide the POWER cpu options in booke configs. Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r--arch/powerpc/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 6930c935d292..32dfd5dc2be6 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -88,13 +88,22 @@ CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc)
88CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) 88CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
89CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple 89CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple
90 90
91ifeq ($(CONFIG_PPC_BOOK3S_64),y)
91CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,-mtune=power4) 92CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,-mtune=power4)
93else
94CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=powerpc64
95endif
96
92CFLAGS-$(CONFIG_CELL_CPU) += $(call cc-option,-mcpu=cell) 97CFLAGS-$(CONFIG_CELL_CPU) += $(call cc-option,-mcpu=cell)
93CFLAGS-$(CONFIG_POWER4_CPU) += $(call cc-option,-mcpu=power4) 98CFLAGS-$(CONFIG_POWER4_CPU) += $(call cc-option,-mcpu=power4)
94CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5) 99CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5)
95CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6) 100CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6)
96CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7) 101CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7)
97 102
103E5500_CPU := $(call cc-option,-mcpu=e500mc64,-mcpu=powerpc64)
104CFLAGS-$(CONFIG_E5500_CPU) += $(E5500_CPU)
105CFLAGS-$(CONFIG_E6500_CPU) += $(call cc-option,-mcpu=e6500,$(E5500_CPU))
106
98CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell) 107CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell)
99 108
100KBUILD_CPPFLAGS += -Iarch/$(ARCH) 109KBUILD_CPPFLAGS += -Iarch/$(ARCH)