From 7f59fa36a804c5d9f3f0e210291d87967827d7cd Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Sat, 20 Jul 2019 10:36:47 +0100 Subject: fish --- sha1/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sha1/Makefile b/sha1/Makefile index 52805c3..1f5bafb 100644 --- a/sha1/Makefile +++ b/sha1/Makefile @@ -20,8 +20,9 @@ default:${APP} ${LSTS} ${S19} .PRECIOUS:${APP} ${LSTS} -%.srec:%.img - srec_cat $< -binary -o $@ +%.srec:%.img %.map + #srec_cat -Execution_Start_Address `awk '{if ($$2=="TEST") {print "0x"$$1}}' < ${@:%.srec=%.map} ` ${@:%.srec=%.img} -binary -o $@ + srec_cat ${@:%.srec=%.img} -binary -o $@ head -n -1 $@ > $@.tmp mv -f $@.tmp $@ @@ -31,7 +32,7 @@ default:${APP} ${LSTS} ${S19} %.app:%.p ${P2BIN} $< $@ -r 0x110-\$$ -%.lst %.p:%.asm +%.map %.lst %.p:%.asm ${AS} -g -L ${@:%.p=%.lst} -o $@ $< ${CROSS}/process_map ${@:%.p=%.map} -- cgit v1.2.3