summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-07-20 10:36:47 +0100
committerfishsoupisgood <github@madingley.org>2019-07-20 10:36:47 +0100
commit7f59fa36a804c5d9f3f0e210291d87967827d7cd (patch)
tree627bd4c6d3d53497663418dc904241db68fd3127
parent80e8c0c140d2e11a9afd59afe2cf537d4847132d (diff)
downloadwristapps-master.tar.gz
wristapps-master.tar.bz2
wristapps-master.zip
-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}