From mboxrd@z Thu Jan 1 00:00:00 1970 From: George G. Davis Date: Wed, 03 Dec 2003 10:32:36 -0500 Subject: [U-Boot-Users] tiny patch for examples/Makefile (objcopy related) In-Reply-To: <3FCDEA1B.6010306@mesias.co.uk> References: <3FCDEA1B.6010306@mesias.co.uk> Message-ID: <3FCE0214.4030203@comcast.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Cam wrote: > 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 > 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 > > This patch ensures that the binary image is produced from the elf file > 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'. > > > ------------------------------------------------------------------------ > > diff -urN u-boot-1.0.0.orig/examples/Makefile u-boot-1.0.0/examples/Makefile > --- u-boot-1.0.0.orig/examples/Makefile 2003-10-14 20:43:56.000000000 +0100 > +++ u-boot-1.0.0/examples/Makefile 2003-12-03 11:21:04.000000000 +0000 > @@ -104,7 +104,7 @@ > $(OBJCOPY) -O srec $(<:.o=) $@ > > %.bin: %.srec > - $(OBJCOPY) -O binary $< $@ 2>/dev/null > + $(OBJCOPY) -O binary $(<:.srec=) $@ 2>/dev/null > > ######################################################################### > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: u-boot.patch Url: http://lists.denx.de/pipermail/u-boot/attachments/20031203/390504b3/attachment.txt