[PATCH] allow kernel compile with native ppc64 compiler

Olaf Hering olh at suse.de
Mon Oct 18 17:54:33 EST 2004

 On Mon, Oct 18, Paul Mackerras wrote:

> Olaf Hering writes:
> > > ... and breaks the compile on older toolchains that don't understand
> > > -m32.  We need to make the -m32 conditional on HAS_BIARCH as defined
> > > in arch/ppc64/Makefile.
> > 
> > how old?
> The gcc that comes with debian sid doesn't understand -m32.  That's a
> 32-bit gcc, which means that I set CROSS_COMPILE when doing a ppc64
> kernel compile.  With your patch I have to set CROSS32_COMPILE as
> well, which seems silly when I'm compiling on a ppc32 box already.

Makes sense, I confused a native powerpc64-linux gcc from last century
with a native/cross powerpc-linux gcc from last century.

> Ben H suggested making the default BOOTCC be $(CC) -m32, which makes
> sense to me.

That may break cross compile. I will provide a new patch.

USB is for mice, FireWire is for men!


More information about the Linuxppc64-dev mailing list