proposed patch for cross compiling from Solaris 2.8

Tom Rini trini at kernel.crashing.org
Fri Jul 9 10:58:32 EST 2004


On Tue, Jul 06, 2004 at 11:20:51AM +0200, Jean-Christophe Dubois wrote:

> I got into several issues while trying to cross-compile a Linux 2.6 PPC
> kernel from a Solaris 2.8 host (beside getting a valid cross compilation
> chain). Mainly some programs compiled on the host are not planned to be
> compiled on anything but Linux (The host has to run Linux).
[snip]
> --- linux-2.6.7/arch/ppc/boot/utils/mkbugboot.c Wed Jun 16 01:19:36 2004
> +++ linux-2.6.7.work/arch/ppc/boot/utils/mkbugboot.c    Tue Jul  6
> 03:27:50 2004
> @@ -49,10 +49,12 @@
>  /* size of read buffer */
>  #define SIZE 0x1000
>
> +#ifdef __linux__
>  /* typedef long int32_t; */
>  typedef unsigned long uint32_t;
>  typedef unsigned short uint16_t;
>  typedef unsigned char uint8_t;
> +#endif
>
>  /* PPCBUG ROM boot header */
>  typedef struct bug_boot_header {

This, and possibly the rest, should probably be #ifndef __sun__.  Or at
least mkbugboot.c is OK with that on cygwin (haven't heard of a 2.6 compile
on cygwin yet so I can't say for certain if the other two are OK there).
I'll change and push up.  Thanks.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list