From nobody Mon Sep 17 00:00:00 2001 From: Martin Hicks Date: Wed Apr 5 12:02:20 2006 -0400 Subject: [PATCH] objcopy for srec and bin files should be done on .o files 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