summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Makefile
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-11-25 10:04:27 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-11-25 10:04:27 +1100
commit02ce6e879eb6f260ee48e822f20b94c360fdd4d3 (patch)
tree51b626c0dc20c3c2992987929860a6d8c19a3003 /arch/powerpc/Makefile
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
parentd742aa152f27448d39ce65fb829e396d10cd63a9 (diff)
downloadlinux-02ce6e879eb6f260ee48e822f20b94c360fdd4d3.tar.gz
linux-02ce6e879eb6f260ee48e822f20b94c360fdd4d3.tar.bz2
linux-02ce6e879eb6f260ee48e822f20b94c360fdd4d3.zip
Merge remote-tracking branch 'scott/master' into merge
Scott wrote: << The corenet64 patch fixes a regression introduced in 3.13-rc1 (commit ef1313deafb7baa6d3382044e962d5ad5e8c8dd6, "powerpc: Add VMX optimised xor for RAID5"). The 8xx patch fixes a regression introduced in 3.12 (commit beb2dc0a7a84be003ce54e98b95d65cc66e6e536, "powerpc: Convert some mftb/mftbu into mfspr"). The other two patches are fixes for minor, long standing bugs. >>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r--arch/powerpc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 8a2463670a5b..a284d7fbc97f 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -128,7 +128,12 @@ CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5)
CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6)
CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7)
+# Altivec option not allowed with e500mc64 in GCC.
+ifeq ($(CONFIG_ALTIVEC),y)
+E5500_CPU := -mcpu=powerpc64
+else
E5500_CPU := $(call cc-option,-mcpu=e500mc64,-mcpu=powerpc64)
+endif
CFLAGS-$(CONFIG_E5500_CPU) += $(E5500_CPU)
CFLAGS-$(CONFIG_E6500_CPU) += $(call cc-option,-mcpu=e6500,$(E5500_CPU))