From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Hicks Date: Wed, 5 Apr 2006 12:26:45 -0400 Subject: [U-Boot-Users] [PATCH] objcopy for srec and bin files should be done on .o files Message-ID: <20060405162645.GU27792@bork.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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