summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Makefile
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-08-15 20:19:10 -0400
committerScott Wood <scottwood@freescale.com>2013-08-20 21:49:56 -0400
commit847f56b0cc2fe431a1272eb586e316ba2c02c55f (patch)
treeb19fd7145bdea747d7a3bb657a5a0b10fb3601a1 /arch/powerpc/Makefile
parent01718ba6ec30013c7d47084876b9c16471b291af (diff)
powerpc/e500: Set -mcpu flag for 32-bit e500
Unlike 64-bit, we don't currently support multiplatform between e500 and non-e500, so the -mcpu is not configurable at this time. -msoft-float is specified when testing for -mcpu=8540 because otherwise some older toolchains will fail with "error: E500 and FPRs not supported". Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r--arch/powerpc/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 32dfd5dc2be6..51cfb78d4061 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -104,6 +104,14 @@ E5500_CPU := $(call cc-option,-mcpu=e500mc64,-mcpu=powerpc64)
104CFLAGS-$(CONFIG_E5500_CPU) += $(E5500_CPU) 104CFLAGS-$(CONFIG_E5500_CPU) += $(E5500_CPU)
105CFLAGS-$(CONFIG_E6500_CPU) += $(call cc-option,-mcpu=e6500,$(E5500_CPU)) 105CFLAGS-$(CONFIG_E6500_CPU) += $(call cc-option,-mcpu=e6500,$(E5500_CPU))
106 106
107ifeq ($(CONFIG_PPC32),y)
108ifeq ($(CONFIG_PPC_E500MC),y)
109CFLAGS-y += $(call cc-option,-mcpu=e500mc,-mcpu=powerpc)
110else
111CFLAGS-$(CONFIG_E500) += $(call cc-option,-mcpu=8540 -msoft-float,-mcpu=powerpc)
112endif
113endif
114
107CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell) 115CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell)
108 116
109KBUILD_CPPFLAGS += -Iarch/$(ARCH) 117KBUILD_CPPFLAGS += -Iarch/$(ARCH)