Subject: Re: [PATCH] Set cpu explicitly in kernel compiles

From: Olaf Hering <[email-masked]>
Date: Tue, 5 Jul 2005 20:14:48 +0200

On Sun, Jul 03, Tom Rini wrote:

> cpu-as-y = -Wa,-mcpu=powerpc	# Pure ppc32

That alone should fix it, adding -mcpu=$somecpu may generate bad code
for other cpu types, according to alanm.

> cpu-as-$(CONFIG_6xx) += -Wa,-maltivec
> cpu-as-$(CONFIG_PPC_601) := -Wa,-mcpu=601 # Or whatever the 601 option is

601 doesnt need special cflags handling.

cpu-as-$(CONFIG_6xx) += -Wa,-mcpu=powerpc

may be enough, no idea if -Wa is required.