Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-19 Thread Sam Ravnborg
On Fri, Oct 19, 2007 at 01:38:38AM -0500, Rob Landley wrote: > On Thursday 18 October 2007 4:14:20 pm Sam Ravnborg wrote: > > > Anyway, here's a try to make it autodetect m68k-linux-gnu-gcc and > > > m68k-linux-gcc. Perhaps it can be generalized in kbuild, to allow > > > arch/*/Makefile to set a li

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-18 Thread Rob Landley
On Thursday 18 October 2007 4:14:20 pm Sam Ravnborg wrote: > > Anyway, here's a try to make it autodetect m68k-linux-gnu-gcc and > > m68k-linux-gcc. Perhaps it can be generalized in kbuild, to allow > > arch/*/Makefile to set a list of possible cross-compiler prefixes? > > Here is my first try. > W

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-18 Thread Sam Ravnborg
> > Anyway, here's a try to make it autodetect m68k-linux-gnu-gcc and > m68k-linux-gcc. Perhaps it can be generalized in kbuild, to allow > arch/*/Makefile to set a list of possible cross-compiler prefixes? Here is my first try. We only touch CROSS_COMPILE is empty and building for another arch.

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-15 Thread Sam Ravnborg
On Mon, Oct 15, 2007 at 07:31:54PM -0500, Rob Landley wrote: > On Monday 15 October 2007 3:25:35 pm Geert Uytterhoeven wrote: > > 64-bit parisc tests if /usr/bin/hppa64-linux-gnu- exists. > > If yes, it sets CROSS_COMPILE to hppa64-linux-gnu-. > > If no, it sets CROSS_COMPILE to hppa64-linux- > > >

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-15 Thread Rob Landley
On Monday 15 October 2007 3:25:35 pm Geert Uytterhoeven wrote: > 64-bit parisc tests if /usr/bin/hppa64-linux-gnu- exists. > If yes, it sets CROSS_COMPILE to hppa64-linux-gnu-. > If no, it sets CROSS_COMPILE to hppa64-linux- > > 32-bit parisc unconditionally sets CROSS_COMPILE to hppa-linux-. > > T

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-15 Thread Geert Uytterhoeven
On Fri, 12 Oct 2007, Sam Ravnborg wrote: > On Fri, Oct 12, 2007 at 10:51:00AM +0200, Geert Uytterhoeven wrote: > > On Fri, 12 Oct 2007, Finn Thain wrote: > > > > If your cross-compiler is called differently than the default on in > > > > arch/*/Makefile, > > > > > > Part of the problem is that th

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-12 Thread Sam Ravnborg
On Fri, Oct 12, 2007 at 10:51:00AM +0200, Geert Uytterhoeven wrote: > On Fri, 12 Oct 2007, Finn Thain wrote: > > > If your cross-compiler is called differently than the default on in > > > arch/*/Makefile, > > > > Part of the problem is that there is no compelling default. The name of > > the cr

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-12 Thread Geert Uytterhoeven
On Fri, 12 Oct 2007, Finn Thain wrote: > > If your cross-compiler is called differently than the default on in > > arch/*/Makefile, > > Part of the problem is that there is no compelling default. The name of > the cross-compiler can vary depending on the chosen executable prefix or > the chosen

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-12 Thread Finn Thain
> > If your cross-compiler is called differently than the default on in > arch/*/Makefile, Part of the problem is that there is no compelling default. The name of the cross-compiler can vary depending on the chosen executable prefix or the chosen target tuple. Let's say I create new cross t

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Geert Uytterhoeven
On Thu, 11 Oct 2007, Rob Landley wrote: > On Thursday 11 October 2007 11:26:07 am Finn Thain wrote: > My toolchains override the default prefix to just the target, resulting > in "m68k-gcc". (It's shorter, and when you're creating a dozen toolchains > having them all say -linux- in the middle of

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Rob Landley
On Thursday 11 October 2007 11:26:07 am Finn Thain wrote: > On Thu, 11 Oct 2007, Geert Uytterhoeven wrote: > > > Reading the patch in that link, recent cross compilers from _where_? > > > Buildroot? Cross-tools? Gentoo embedded? Cross Linux From Scratch? > > > My Firmware Linux project? > > > >

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Finn Thain
On Thu, 11 Oct 2007, Geert Uytterhoeven wrote: > > Reading the patch in that link, recent cross compilers from _where_? > > Buildroot? Cross-tools? Gentoo embedded? Cross Linux From Scratch? > > My Firmware Linux project? > > > > You assume they all use the same name, yet your patch chang

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Sam Ravnborg
> > > 2) suggested functionality makes it easy to do make headers_install > > This is something completely different (cfr. the other thread handling > it). If `make headers_install' doesn't need the cross compiler, it > should not try to execute it. This is obviously correct. It happens that we

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Geert Uytterhoeven
On Thu, 11 Oct 2007, Rob Landley wrote: > On Thursday 11 October 2007 7:46:47 am Geert Uytterhoeven wrote: > > On Thu, 11 Oct 2007, Sam Ravnborg wrote: > > > On Thu, Oct 11, 2007 at 09:25:19AM +0200, Geert Uytterhoeven wrote: > > > > On Wed, 10 Oct 2007, Rob Landley wrote: > > > > > Rip out hardwir

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Paul Mundt
On Thu, Oct 11, 2007 at 08:27:12AM -0500, Rob Landley wrote: > On Thursday 11 October 2007 7:46:47 am Geert Uytterhoeven wrote: > > On Thu, 11 Oct 2007, Sam Ravnborg wrote: > > > On Thu, Oct 11, 2007 at 09:25:19AM +0200, Geert Uytterhoeven wrote: > > > > BTW, m68k-linux-gnu- is the default name for

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Rob Landley
On Thursday 11 October 2007 7:46:47 am Geert Uytterhoeven wrote: > On Thu, 11 Oct 2007, Sam Ravnborg wrote: > > On Thu, Oct 11, 2007 at 09:25:19AM +0200, Geert Uytterhoeven wrote: > > > On Wed, 10 Oct 2007, Rob Landley wrote: > > > > From: Rob Landley <[EMAIL PROTECTED]> > > > > > > > > Rip out har

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Geert Uytterhoeven
On Thu, 11 Oct 2007, Sam Ravnborg wrote: > On Thu, Oct 11, 2007 at 09:25:19AM +0200, Geert Uytterhoeven wrote: > > On Wed, 10 Oct 2007, Rob Landley wrote: > > > From: Rob Landley <[EMAIL PROTECTED]> > > > > > > Rip out hardwired cross compiler name assumption that only m68k makes. > > > > > > Sig

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Sam Ravnborg
On Thu, Oct 11, 2007 at 09:25:19AM +0200, Geert Uytterhoeven wrote: > On Wed, 10 Oct 2007, Rob Landley wrote: > > From: Rob Landley <[EMAIL PROTECTED]> > > > > Rip out hardwired cross compiler name assumption that only m68k makes. > > > > Signed-off-by: Rob Landley <[EMAIL PROTECTED]> > > --- > >

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Rob Landley
On Thursday 11 October 2007 2:25:19 am Geert Uytterhoeven wrote: > On Wed, 10 Oct 2007, Rob Landley wrote: > > From: Rob Landley <[EMAIL PROTECTED]> > > > > Rip out hardwired cross compiler name assumption that only m68k makes. > > > > Signed-off-by: Rob Landley <[EMAIL PROTECTED]> > > --- > > When

Re: [PATCH] Make m68k cross compile like every other architecture.

2007-10-11 Thread Geert Uytterhoeven
On Wed, 10 Oct 2007, Rob Landley wrote: > From: Rob Landley <[EMAIL PROTECTED]> > > Rip out hardwired cross compiler name assumption that only m68k makes. > > Signed-off-by: Rob Landley <[EMAIL PROTECTED]> > --- > When you cross compile, you have to set the prefix CROSS_COMPILE to your > cross co