changeset 118:225e39652387

TMS470 build system: added m0-to-bin-c155
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 07 Nov 2018 06:18:05 +0000
parents e67bbb9b1fb9
children 7f0681afe430
files configure-tms470.sh tms470/makefile-frags/m0-to-bin-c155
diffstat 2 files changed, 17 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure-tms470.sh	Wed Nov 07 06:03:02 2018 +0000
+++ b/configure-tms470.sh	Wed Nov 07 06:18:05 2018 +0000
@@ -373,12 +373,17 @@
 
 cat tms470/makefile-frags/link-steps >> $BUILD_DIR/Makefile
 
-if [ "$TARGET" != c139 -a "$TARGET" != c11x ]
-then
-	cat tms470/makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile
-else
-	cat tms470/makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile
-fi
+case "$TARGET" in
+	c11x|c139)
+		cat tms470/makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile
+		;;
+	c155)
+		cat tms470/makefile-frags/m0-to-bin-c155 >> $BUILD_DIR/Makefile
+		;;
+	*)
+		cat tms470/makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile
+		;;
+esac
 
 cat tms470/makefile-frags/flash-script-gen >> $BUILD_DIR/Makefile
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tms470/makefile-frags/m0-to-bin-c155	Wed Nov 07 06:18:05 2018 +0000
@@ -0,0 +1,6 @@
+fwimage.intbin:	fwimage.m0
+	../helpers/mokosrec2bin $< $@ FF
+
+fwimage.bin:	fwimage.intbin
+	dd if=$< of=$@ bs=65536 skip=2
+