[PATCH] Set cpu explicitly in kernel compiles

Olaf Hering olh at suse.de
Wed Jul 6 04:14:48 EST 2005


 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.



More information about the Linuxppc-dev mailing list