diff configure.sh @ 536:ae18f9aad7ce

C155 target support implemented in a way that should work with this model's original bootloader
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 05 Nov 2018 23:15:45 +0000
parents bb9a08797022
children 3575e65c059e
line wrap: on
line diff
--- a/configure.sh	Mon Nov 05 17:30:51 2018 +0000
+++ b/configure.sh	Mon Nov 05 23:15:45 2018 +0000
@@ -274,12 +274,19 @@
 fi
 
 cat makefile-frags/link-steps >> $BUILD_DIR/Makefile
-if [ "$TARGET" != c11x -a "$TARGET" != c139 -a "$TARGET" != c155 ]
-then
-	cat makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile
-else
-	cat makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile
-fi
+
+case "$TARGET" in
+	c11x|c139)
+		cat makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile
+		;;
+	c155)
+		cat makefile-frags/m0-to-bin-c155 >> $BUILD_DIR/Makefile
+		;;
+	*)
+		cat makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile
+		;;
+esac
+
 cat makefile-frags/flash-script-gen >> $BUILD_DIR/Makefile
 
 if [ -n "$RAM_LINK_SCRIPT_SRC" ]