Skip to contentSkip to conversation

Problems Building u-boot-1.3.1

U-Boot-Users Applied raptorbrino at aim.com 3 participants 6 messages Dec 13, 2007 – Jan 9, 2008

lore
Share & tools
lore
#0 lore raw

After a gentle slap in the face by Markus about my choice of OS and a thorough beat down by Wolfgang about my inexperienced message posting style I'm back for more punishment! I tremble with every character I type, but to all Cygiwn users out there, I propose the following fix for the cygwin build problem. This should allow Linux users to be happy and allow cygwin users to build without error, albeit penalize them for using the inadequate Windows OS! Damn I hope I did this right.

tools/Makefile 2007-12-13 12:22:15.796875000 -0800 renamed from tools/Makefile 2007-12-06 01:21:19.000000000 -0800 +1 -0
diff -Naur old/tools/Makefile new/tools/Makefile
@@ -97,6 +97,7 @@
 #
 ifeq ($(HOSTOS),cygwin)
 SFX = .exe
+HOST_CFLAGS += -ansi
 else
 SFX =
 endif

________________________________________________________________________
More new features than ever. Check out the new AIM(R) Mail ! -
http://webmail.aim.com

#1 lore raw
Quoted 8 lines · In message <[email protected]> you wrote:

After a gentle slap in the face by Markus about my choice of OS and a thorough beat down by Wolfgang about my inexperienced message posting style I'm back for more punishment! I tremble with every character I type, but to all Cygiwn users out there, I propose the following fix for the cygwin build problem. This should allow Linux users to be happy and allow cygwin users to build without error, albeit penalize them for using the inadequate Windows OS! Damn I hope I did this right.

...if you could please add your Signed-off-by: line, too?

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How can you tell when sour cream goes bad?
#2 lore raw
Quoted 1 line · Wolfgang

...if you could please add your Signed-off-by: line, too?

Slowly learning ...

________________________________________________________________________
More new features than ever. Check out the new AIM(R) Mail ! -
http://webmail.aim.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 272 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20071213/0ba34af1/attachment.obj

#3 lore raw
In reply to Wolfgang Denk

Sorry guys, first time posting a patch and I believe the formatting of my last mail was all wrong. Here's a better attempt at it.

This patch allows u-boot to build without error in a cygwin environment. Cygwin does not define __u64 in it's include/asm/types.h file. The -idirafter flag in the u-boot build causes the inclusion of the cygwin types.h file as opposed to u-bot/include/asm/types.h file which does define __u64. Subsequently, sha1.c compile fails due to unknown symbol.

tools/Makefile 2007-12-13 12:22:15.796875000 -0800 renamed from tools/Makefile 2007-12-06 01:21:19.000000000 -0800 +1 -0
diff -purN old/tools/Makefile new/tools/Makefile
@@ -97,6 +97,7 @@ endif
 #
 ifeq ($(HOSTOS),cygwin)
 SFX = .exe
+HOST_CFLAGS += -ansi
 else
 SFX =
 endif

________________________________________________________________________
More new features than ever. Check out the new AIM(R) Mail ! -
http://webmail.aim.com

#4 lore raw

Hi Brian,

You are getting closer! :-) For perfection, you need to adjust a few things. First, make your mail Subject: line be a concise one-line summary of your patch prefixed with a "[PATCH]" so we can spot it, and then launch into the rest of your log message.

Secondly, non-log commentary like this:

Quoted 2 lines · raptorbrino at aim.com

Sorry guys, first time posting a patch and I believe the formatting of my last mail was all wrong. Here's a better attempt at it.

belongs after a "---" line, but before your diff content.

Quoted 8 lines

This patch allows u-boot to build without error in a cygwin environment. Cygwin does not define __u64 in it's include/asm/types.h file. The -idirafter flag in the u-boot build causes the inclusion of the cygwin types.h file as opposed to u-bot/include/asm/types.h file which does define __u64. Subsequently, sha1.c compile fails due to unknown symbol.

Right here! Like this:

---

Additional commentary here....

and then your patch!

tools/Makefile 2007-12-13 12:22:15.796875000 -0800 endif · line 103

Quoted 11 lines

diff -purN old/tools/Makefile new/tools/Makefile

tools/Makefile 2007-12-13 12:22:15.796875000 -0800 renamed from tools/Makefile 2007-12-06 01:21:19.000000000 -0800 +1 -0
@@ -97,6 +97,7 @@ endif
 #
 ifeq ($(HOSTOS),cygwin)
 SFX = .exe
+HOST_CFLAGS += -ansi
 else
 SFX =
 endif

Keep up the good fight!

Good luck,
jdl

#5 lore raw
In reply to raptorbrino at aim.com
Quoted 11 lines · In message <[email protected]> you wrote:

Sorry guys, first time posting a patch and I believe the formatting of my last mail was all wrong. Here's a better attempt at it.

This patch allows u-boot to build without error in a cygwin environment. Cygwin does not define __u64 in it's include/asm/types.h file. The -idirafter flag in the u-boot build causes the inclusion of the cygwin types.h file as opposed to u-bot/include/asm/types.h file which does define __u64. Subsequently, sha1.c compile fails due to unknown symbol.

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
KLB is an acronym for `Known Lazy Bastard', aka non-FAQ  reader,  aka
person  who  would  rather  make  someone  take their time to explain
something basic than look it up in a  FAQ.
         -- Tom Christiansen in <[email protected]>