Re: Changing topic (longish), was Re: GGI debate and etc.

Trevor Johnson (
Thu, 26 Feb 1998 10:01:27 -0800 (PST)

> This may be a dumb question, but this seemed like the best time to bring
> it up. I am wondering if there is currently a way to 'cross-compile' a
> kernel.
> For instance (and the pre-requesite of a gcc that is capable of cross
> compiling is a given) if on my PC I wanted to compile a kernel for a
> PowerMac, is this already possible?

I think you could just change line 5 in the top-level Makefile from

ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)


ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/i386/ppc/)

but I haven't tried it. IMO it would be better if the platform could be
set in the configuration programs, with the uname test used to establish a
default when there is no .config file.
Trevor Johnson

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to