changeset 88:46d9d68a3911

top Makefile: support building flash images for the C139
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 Oct 2016 14:11:29 +0000
parents 8dd671b7d41e
children 6c3881378a31
files configure.sh makefile-frags/link-steps makefile-frags/m0-to-bin-c139 makefile-frags/m0-to-bin-std
diffstat 4 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.sh	Sun Oct 02 14:00:10 2016 +0000
+++ b/configure.sh	Sun Oct 02 14:11:29 2016 +0000
@@ -198,6 +198,12 @@
 fi
 
 cat makefile-frags/link-steps >> $BUILD_DIR/Makefile
+if [ "$TARGET" != c139 ]
+then
+	cat makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile
+else
+	cat makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile
+fi
 
 cat makefile-frags/clean-always >> $BUILD_DIR/Makefile
 if [ "$str2ind_blobs_used" = 0 ]
--- a/makefile-frags/link-steps	Sun Oct 02 14:00:10 2016 +0000
+++ b/makefile-frags/link-steps	Sun Oct 02 14:11:29 2016 +0000
@@ -11,6 +11,3 @@
 fwimage.m0:	fwimage.out
 	../toolwrap/hex470 -m -memwidth 16 -romwidth 16 $<
 
-fwimage.bin:	fwimage.m0
-	mokosrec2bin $< $@ FF
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makefile-frags/m0-to-bin-c139	Sun Oct 02 14:11:29 2016 +0000
@@ -0,0 +1,6 @@
+fwimage.intbin:	fwimage.m0
+	mokosrec2bin $< $@ FF
+
+fwimage.bin:	fwimage.intbin
+	dd if=$< of=$@ bs=65536 skip=1
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makefile-frags/m0-to-bin-std	Sun Oct 02 14:11:29 2016 +0000
@@ -0,0 +1,3 @@
+fwimage.bin:	fwimage.m0
+	mokosrec2bin $< $@ FF
+