All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] objcopy for srec and bin files should be done on .o files
@ 2006-04-05 16:26 Martin Hicks
  2006-04-05 18:33 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Hicks @ 2006-04-05 16:26 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-04-05 22:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05 16:26 [U-Boot-Users] [PATCH] objcopy for srec and bin files should be done on .o files Martin Hicks
2006-04-05 18:33 ` 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

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.