All of lore.kernel.org
 help / color / mirror / Atom feed
From: George G. Davis <davis_g@comcast.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] tiny patch for examples/Makefile (objcopy related)
Date: Wed, 03 Dec 2003 10:32:36 -0500	[thread overview]
Message-ID: <3FCE0214.4030203@comcast.net> (raw)
In-Reply-To: <3FCDEA1B.6010306@mesias.co.uk>



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 

  reply	other threads:[~2003-12-03 15:32 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 [this message]
2003-12-07 20:05 ` Wolfgang Denk
2003-12-10 16:13   ` Detlev Zundel
2003-12-10 16:37     ` George G. Davis
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=3FCE0214.4030203@comcast.net \
    --to=davis_g@comcast.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.