Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 11, 2001 at 09:40:50AM +1000, Ben Elliston wrote:

> > > crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on
> > > properly installed libraries and headers might possibly of interest for
> > > building standalone software.
> 
> >  Hmm, I don't think config.guess is ever used for cross-compilation as
> > the script's purpose is to guess the host and you need to specify one
> > explicitly for a cross-compilation to happen.  Anyway it's saner not
> > to use build system properties to guess host system ones.
> 
> You're close, but not quite correct.  In a cross-compilation environment,
> the job of config.guess is to determine the type of the build system,
> which may be different to the host and will certainly be different to the
> target.

In case of Linux/MIPS it could guess wether it's a little endian or big
endian configuration and emit mips-unknown-gnu-linux or
mipsel-unknown-gnu-linux that is taking away the burden of the user knowing
about the right endianess for his target - specifying mips-linux as target
should then be sufficient.  Does that sound sane or would overriding the
users explicitly give targetname (or even hostname for a native build) be
considered a bad thing?

  Ralf

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux