public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: George G. Davis <gdavis@mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] tiny patch for examples/Makefile (objcopy related)
Date: Wed, 10 Dec 2003 11:37:24 -0500	[thread overview]
Message-ID: <20031210163438.GA6906@mvista.com> (raw)
In-Reply-To: <87d6awmz0c.fsf@deepthought.outer.space.org>

On Wed, Dec 10, 2003 at 05:13:55PM +0100, Detlev Zundel wrote:
> Hi Wolfgang & Cam,
> 
> > Dear Cam,
> >
> > in message <3FCDEA1B.6010306@mesias.co.uk> you wrote:
> >> 
> >> Here is a short patch for the examples/Makefile. This improves 
> >> reliability in the case of a deficient toolchain.
> >>
> >> 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
> >>  
> >>  #########################################################################
> 
> > Thanks, added.
> 
> Are you aware, that you effectively have a misleading rule now?  The
> rule says how to generate ".bin" from ".srec" files, while in the
> command pattern you explicitely use none of the prerequisites but the
> hand-derived ELF file.  This might potentially mess up make's rule
> algorithm.
> 
> As I am on holiday right now, I am too lazy to come up with a cleaner
> fix, I just wanted to phrase my concern.

This works without the side-effects too:   ; P

Index: examples/Makefile
===================================================================
RCS file: /cvsroot/u-boot/u-boot/examples/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- examples/Makefile	14 Oct 2003 19:43:56 -0000	1.14
+++ examples/Makefile	3 Dec 2003 15:29:11 -0000
@@ -104,7 +104,7 @@
 	$(OBJCOPY) -O srec $(<:.o=) $@
 
 %.bin:	%.srec
-	$(OBJCOPY) -O binary $< $@ 2>/dev/null
+	$(OBJCOPY) -I srec -O binary $< $@ 2>/dev/null
 
 #########################################################################
 
--
Regards,
George

  reply	other threads:[~2003-12-10 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-03 13:50 [U-Boot-Users] tiny patch for examples/Makefile (objcopy related) Cam
2003-12-03 15:32 ` George G. Davis
2003-12-07 20:05 ` Wolfgang Denk
2003-12-10 16:13   ` Detlev Zundel
2003-12-10 16:37     ` George G. Davis [this message]
2003-12-10 21:17       ` Cam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031210163438.GA6906@mvista.com \
    --to=gdavis@mvista.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox