[PATCH] Set cpu explicitly in kernel compiles
Tom Rini
trini at kernel.crashing.org
Wed Jul 6 05:47:24 EST 2005
On Tue, Jul 05, 2005 at 08:14:48PM +0200, Olaf Hering wrote:
> 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.
Exactly.
> > 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.
gcc info page says that -mcpu=powerpc won't work for 601.
--
Tom Rini
http://gate.crashing.org/~trini/
More information about the Linuxppc-dev
mailing list