All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Hicks <mort@bork.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] objcopy for srec and bin files should be done on .o files
Date: Wed, 5 Apr 2006 12:26:45 -0400	[thread overview]
Message-ID: <20060405162645.GU27792@bork.org> (raw)

The Makefile rule for creating srec and bin files fails for me frequently.
I believe that we should be doing the ojbcopy on the .o files, not the ELF
binary.

Signed-off-by: Martin Hicks <mort@bork.org>

---

 examples/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

35b9e5c91127f1428c6e207fe2bca76782ca5b36
diff --git a/examples/Makefile b/examples/Makefile
index 2f8c4c4..36fe2a3 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -123,10 +123,10 @@ $(LIB): .depend $(LIBOBJS)
 	$(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
 		-o $@ -e $(<:.o=) $< $(LIB) \
 		-L$(gcclibdir) -lgcc
-%.srec:	%
+%.srec:	%.o
 	$(OBJCOPY) -O srec $< $@ 2>/dev/null
 
-%.bin:	%
+%.bin:	%.o
 	$(OBJCOPY) -O binary $< $@ 2>/dev/null
 
 #########################################################################
-- 
1.2.4


-- 
Martin Hicks || mort at bork.org || PGP/GnuPG: 0x4C7F2BEE

             reply	other threads:[~2006-04-05 16:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-05 16:26 Martin Hicks [this message]
2006-04-05 18:33 ` [U-Boot-Users] [PATCH] objcopy for srec and bin files should be done on .o files Wolfgang Denk
2006-04-05 18:59   ` Martin Hicks
2006-04-05 21:04     ` Wolfgang Denk
2006-04-05 22:03       ` Martin Hicks
2006-04-05 22:25         ` Wolfgang Denk

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=20060405162645.GU27792@bork.org \
    --to=mort@bork.org \
    --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.