Skip to contentSkip to conversation

No subject

DISCUSSION [email protected] 1 participant 1 message Aug 19, 2008

lore
Share & tools
lore
#0 lore raw

wouldn't complain if it isn't as the code is correct.

Regards,

Richard W.

Quoted 65 lines

-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf Of George G. Davis
Sent: Wednesday, December 03, 2003 9:33 AM
To: Cam
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] tiny patch for examples/Makefile (objcopy related)

Quoted 6 lines · Cam

Hello u-boot-users,

Here is a short patch for the examples/Makefile. This improves reliability in the case of a deficient toolchain.

For example the MontaVista (pro 3.0) ppc_82xx objcopy does

not accept

Quoted 1 line

srec input, and produces an empty output file which can

confuse make.

Yep, I had noticed this long ago too. Why not just add "-I srec" as in the attached?

--
Regards,
George

Quoted 2 lines

This patch ensures that the binary image is produced from

the elf file

Quoted 9 lines

and not the srec file, which allows a clean build.

-Cam

PS. MontaVista have 'no general interest in supporting srec input' because of 'how little information srec files contain'.

----------------------------------------------------------------------

Quoted 3 lines

--

diff -urN u-boot-1.0.0.orig/examples/Makefile

u-boot-1.0.0/examples/Makefile

Quoted 1 line

--- u-boot-1.0.0.orig/examples/Makefile 2003-10-14

20:43:56.000000000 +0100

Quoted 1 line

+++ u-boot-1.0.0/examples/Makefile 2003-12-03

11:21:04.000000000 +0000

Review line 110

Quoted 9 lines
(quoted diff) +1 -1
@@ -104,7 +104,7 @@
 	$(OBJCOPY) -O srec $(<:.o=) $@
 
 %.bin:	%.srec
-	$(OBJCOPY) -O binary $< $@ 2>/dev/null
+	$(OBJCOPY) -O binary $(<:.srec=) $@ 2>/dev/null
 
 
 

##############################################################
###########

Quoted 1 line