[U-Boot-Users] [PATCH] objcopy for srec and bin files should be done on .o files
Martin Hicks
mort at bork.org
Wed Apr 5 18:26:45 CEST 2006
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 at 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
More information about the U-Boot
mailing list