From 1cfc42c5a63aa1fd4f1e0ce113ea9593fb90cabf Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 25 Nov 2010 03:55:44 +0000 Subject: [PATCH] - add automatic conversion form a elf to a flat binary format git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@270 315a16e6-25f9-4109-90ae-ca3045a26c18 --- tools/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index f843f833..35622cf9 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -27,14 +27,15 @@ reset_vector.bin: reset_vector.o ld --oformat binary -Ttext 0 -melf_i386 -o $@ $< SCC: scc_setup.bin reset_vector.bin - cp ../metalsvm.bin . + cp ../metalsvm.bin ./metalsvm.elf + objcopy -O binary metalsvm.elf metalsvm.bin chmod a-x *.bin . ./prepare.sh /home/lankes/tools/bin2obj -m load.map -o metalsvm.obj sccMerge -noimage -m 8 -n 12 -force ./metalsvm.mt clean: - $(RM) -rf *.o *~ make_initrd *.bin *.obj obj + $(RM) -rf *.o *~ make_initrd *.bin *.obj *.elf obj depend: $(CC) -MM $(CFLAGS) *.c > Makefile.dep