FreeCalypso > hg > fc-magnetite
comparison 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 |
comparison
equal
deleted
inserted
replaced
521:f9125919bbe4 | 522:9363ea39c74c |
---|---|
51 DSP=36 | 51 DSP=36 |
52 RF=12 | 52 RF=12 |
53 DISABLE_SLEEP=0 | 53 DISABLE_SLEEP=0 |
54 | 54 |
55 . "targets/$TARGET.conf" | 55 . "targets/$TARGET.conf" |
56 | |
57 BUILD_DIR="build-$TARGET-$CONFIG" | |
58 USE_STR2IND=0 | |
59 | 56 |
60 # settings derived from the target-defined DSP version | 57 # settings derived from the target-defined DSP version |
61 | 58 |
62 case "$DSP" in | 59 case "$DSP" in |
63 33) | 60 33) |
102 # miscellaneous configurable feature settings | 99 # miscellaneous configurable feature settings |
103 | 100 |
104 ALLOW_CSIM_GSM=1 | 101 ALLOW_CSIM_GSM=1 |
105 SERIAL_DYNAMIC_SWITCH=0 | 102 SERIAL_DYNAMIC_SWITCH=0 |
106 TR_BAUD_CONFIG=TR_BAUD_115200 | 103 TR_BAUD_CONFIG=TR_BAUD_115200 |
104 USE_STR2IND=0 | |
105 | |
106 SUFFIX= | |
107 | 107 |
108 # allow the user to override these defaults | 108 # allow the user to override these defaults |
109 | 109 |
110 shift | 110 shift |
111 shift | 111 shift |
113 do | 113 do |
114 eval "$1" | 114 eval "$1" |
115 shift | 115 shift |
116 done | 116 done |
117 | 117 |
118 BUILD_DIR="build-$TARGET-$CONFIG$SUFFIX" | |
119 | |
118 echo "Building configuration $CONFIG for target $TARGET in $BUILD_DIR" | 120 echo "Building configuration $CONFIG for target $TARGET in $BUILD_DIR" |
119 | 121 |
120 if [ "$clean_flag" = 1 ] | 122 if [ "$clean_flag" = 1 ] |
121 then | 123 then |
122 rm -rf $BUILD_DIR | 124 rm -rf $BUILD_DIR |
235 echo 'char *str2ind_version = "&0";' > $BUILD_DIR/str2ind.c | 237 echo 'char *str2ind_version = "&0";' > $BUILD_DIR/str2ind.c |
236 fi | 238 fi |
237 | 239 |
238 # generate the top level Makefile! | 240 # generate the top level Makefile! |
239 | 241 |
240 helpers/makeline def CONFIG_NAME $CONFIG > $BUILD_DIR/Makefile | 242 helpers/makeline def CONFIG_NAME "$CONFIG$SUFFIX" > $BUILD_DIR/Makefile |
241 echo >> $BUILD_DIR/Makefile | 243 echo >> $BUILD_DIR/Makefile |
242 helpers/makeline def SUBDIR $SUBDIR >> $BUILD_DIR/Makefile | 244 helpers/makeline def SUBDIR $SUBDIR >> $BUILD_DIR/Makefile |
243 echo >> $BUILD_DIR/Makefile | 245 echo >> $BUILD_DIR/Makefile |
244 helpers/makeline def LIBS $LIBS >> $BUILD_DIR/Makefile | 246 helpers/makeline def LIBS $LIBS >> $BUILD_DIR/Makefile |
245 echo >> $BUILD_DIR/Makefile | 247 echo >> $BUILD_DIR/Makefile |