Skip to contentSkip to conversation

U-Boot Compiling in CYGWIN environment

U-Boot James Kosin 1 participant 1 message Jan 28, 2010

lore
Share & tools
lore
#0 lore raw

Sorry, forgot to copy the list on this...
See below:

-------- Original Message --------
Subject: Re: [U-Boot] U-Boot Compiling in CYGWIN environment
Date: Thu, 28 Jan 2010 12:55:38 -0500
From: James Kosin <[email protected]>
To: Wolfgang Denk <[email protected]>

Quoted 7 lines · Wolfgang Denk

Dear James Kosin,

Quoted 3 lines · In message <[email protected]> you wrote:

(2) I'm developing on a Windows system (don't laugh); but, I can't easily change or add VMware to the picture.

Quoted 9 lines

Maybe you can use one of the many other existing solutions - CoLinux, VirtualBox, etc. etc.

Best regards,

Wolfgang Denk

Well, ....

Here is a patch I recently came up with.... granted it does work; however, the code has started using static inline definitions in header files which don't compile with the restriction of -ansi for the C flags on CYGWIN.
The first line allows us to know the endian-ness of the machine, then I define inline to get rid of the errors about using inline ... messy produces a lot of warnings about static functions that are not called. Then I define ulong as being unsigned long.

It fixes the compile for CYGWIN.

James K

--- Patch Below ---

include/compiler.h +6 -0
index 332618e..cd1e416 100644
@@ -8,6 +8,12 @@
 #include <stddef.h>
 
 #ifdef USE_HOSTCC
+#if defined(__CYGWIN__)
+#include <endian.h>
+#define inline
+typedef unsigned long ulong;
+#endif
+
 
 #if defined(__BEOS__)   || \
     defined(__NetBSD__)  || \