[U-Boot] Fwd: Re: U-Boot Compiling in CYGWIN environment

James Kosin jkosin at intcomgrp.com
Thu Jan 28 18:56:25 CET 2010


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 <jkosin at intcomgrp.com>
To: 	Wolfgang Denk <wd at denx.de>



On 1/28/2010 12:35 PM, Wolfgang Denk wrote:
> Dear James Kosin,
>
> In message <4B61A431.6060307 at intcomgrp.com> 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.
>>     
> 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 ---

diff --git a/include/compiler.h b/include/compiler.h
index 332618e..cd1e416 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -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__)  || \




More information about the U-Boot mailing list