Thread (8 messages) flat view 8 messages, 3 authors, 2004-07-09

Re: proposed patch for cross compiling from Solaris 2.8

From: Tom Rini <hidden>
Date: 2004-07-09 00:58:32

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]
quoted hunk ↗ jump to hunk
--- 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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help