powerpc/Makefile: Assemble with -me500 when building for E500
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 12 Jul 2018 21:41:49 +0000 (22:41 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Jul 2018 10:34:42 +0000 (20:34 +1000)
Some of the assembly files use instructions specific to BookE or E500,
which are rejected with the now-default -mcpu=powerpc, so we must pass
-me500 to the assembler just as we pass -me200 for E200.

Fixes: 4bf4f42a2feb ("powerpc/kbuild: Set default generic machine type for 32-bit compile")
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile

index 2ea575cb3401248c1cb97f9596c9e7079c3256b2..fb96206de3175d65f86a63d9a7db0a815300a791 100644 (file)
@@ -243,6 +243,7 @@ endif
 cpu-as-$(CONFIG_4xx)           += -Wa,-m405
 cpu-as-$(CONFIG_ALTIVEC)       += $(call as-option,-Wa$(comma)-maltivec)
 cpu-as-$(CONFIG_E200)          += -Wa,-me200
+cpu-as-$(CONFIG_E500)          += -Wa,-me500
 cpu-as-$(CONFIG_PPC_BOOK3S_64) += -Wa,-mpower4
 cpu-as-$(CONFIG_PPC_E500MC)    += $(call as-option,-Wa$(comma)-me500mc)