diff configure.sh @ 522:9363ea39c74c

configure.sh: implemented SUFFIX= setting, replacing raw BUILD_DIR=
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 24 Jul 2018 02:37:02 +0000
parents 24078551b620
children bb9a08797022
line wrap: on
line diff
--- a/configure.sh	Sun Jul 22 19:10:47 2018 +0000
+++ b/configure.sh	Tue Jul 24 02:37:02 2018 +0000
@@ -54,9 +54,6 @@
 
 . "targets/$TARGET.conf"
 
-BUILD_DIR="build-$TARGET-$CONFIG"
-USE_STR2IND=0
-
 # settings derived from the target-defined DSP version
 
 case "$DSP" in
@@ -104,6 +101,9 @@
 ALLOW_CSIM_GSM=1
 SERIAL_DYNAMIC_SWITCH=0
 TR_BAUD_CONFIG=TR_BAUD_115200
+USE_STR2IND=0
+
+SUFFIX=
 
 # allow the user to override these defaults
 
@@ -115,6 +115,8 @@
 	shift
 done
 
+BUILD_DIR="build-$TARGET-$CONFIG$SUFFIX"
+
 echo "Building configuration $CONFIG for target $TARGET in $BUILD_DIR"
 
 if [ "$clean_flag" = 1 ]
@@ -237,7 +239,7 @@
 
 # generate the top level Makefile!
 
-helpers/makeline def CONFIG_NAME $CONFIG > $BUILD_DIR/Makefile
+helpers/makeline def CONFIG_NAME "$CONFIG$SUFFIX" > $BUILD_DIR/Makefile
 echo >> $BUILD_DIR/Makefile
 helpers/makeline def SUBDIR $SUBDIR >> $BUILD_DIR/Makefile
 echo >> $BUILD_DIR/Makefile