summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sha1/Makefile7
1 files 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}