comparison configure.sh @ 390:56f5db12a125

configure.sh: new CHIPSET, DSP, RF and DSP-derived settings
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 17 Jan 2018 20:10:32 +0000
parents 3ec9abac32cd
children fd1d9063ad40
comparison
equal deleted inserted replaced
389:5addc2943fa2 390:56f5db12a125
43 then 43 then
44 echo "Error: configuration $CONFIG not known" 1>&2 44 echo "Error: configuration $CONFIG not known" 1>&2
45 exit 1 45 exit 1
46 fi 46 fi
47 47
48 # target defaults that can be overridden by $TARGET.conf
49
50 CHIPSET=10
51 DSP=36
52 RF=12
48 DISABLE_SLEEP=0 53 DISABLE_SLEEP=0
49 54
50 . "targets/$TARGET.conf" 55 . "targets/$TARGET.conf"
51 56
52 BUILD_DIR="build-$TARGET-$CONFIG" 57 BUILD_DIR="build-$TARGET-$CONFIG"
53 USE_STR2IND=0 58 USE_STR2IND=0
59
60 # settings derived from the target-defined DSP version
61
62 case "$DSP" in
63 33)
64 AMR=0
65 L1_DYN_DSP_DWNLD=0
66 L1_VOICE_MEMO_AMR=0
67 MELODY_E2=0
68 SPEECH_RECO=0
69 ;;
70 34)
71 AMR=1
72 L1_DYN_DSP_DWNLD=0
73 L1_VOICE_MEMO_AMR=0
74 MELODY_E2=0
75 SPEECH_RECO=0
76 ;;
77 36)
78 AMR=1
79 L1_DYN_DSP_DWNLD=1
80 L1_VOICE_MEMO_AMR=1
81 MELODY_E2=1
82 SPEECH_RECO=1
83 ;;
84 *)
85 echo "Error: DSP=$DSP setting not understood" 1>&2
86 exit 1
87 esac
54 88
55 # configurable feature settings 89 # configurable feature settings
56 90
57 SERIAL_DYNAMIC_SWITCH=0 91 SERIAL_DYNAMIC_SWITCH=0
58 92
152 } 186 }
153 187
154 # invoke the configuration recipe 188 # invoke the configuration recipe
155 189
156 export BUILD_DIR TARGET USE_STR2IND 190 export BUILD_DIR TARGET USE_STR2IND
191 export CHIPSET DSP RF
192 export AMR L1_DYN_DSP_DWNLD L1_VOICE_MEMO_AMR MELODY_E2 SPEECH_RECO
157 export DISABLE_SLEEP 193 export DISABLE_SLEEP
158 export INIT_blob 194 export INIT_blob
159 export SERIAL_DYNAMIC_SWITCH 195 export SERIAL_DYNAMIC_SWITCH
160 196
161 SUBDIR= 197 SUBDIR=