changeset 456:3d772a6268c4

config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Mar 2018 04:04:38 +0000
parents beff67c568cf
children 6530fc550836
files configure.sh scripts/cfg-template scripts/config-headers-new.sh
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.sh	Fri Mar 16 02:34:30 2018 +0000
+++ b/configure.sh	Fri Mar 16 04:04:38 2018 +0000
@@ -102,6 +102,7 @@
 # miscellaneous configurable feature settings
 
 SERIAL_DYNAMIC_SWITCH=0
+TR_BAUD_CONFIG=TR_BAUD_115200
 
 # allow the user to override these defaults
 
@@ -206,7 +207,7 @@
 export DISABLE_SLEEP
 export INIT_blob
 export DSAMPLE_FULL_COLOR UI_CONFIG
-export SERIAL_DYNAMIC_SWITCH
+export SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG
 
 SUBDIR=
 LIBS=
--- a/scripts/cfg-template	Fri Mar 16 02:34:30 2018 +0000
+++ b/scripts/cfg-template	Fri Mar 16 04:04:38 2018 +0000
@@ -79,7 +79,7 @@
 PMODE var
 RVDATA_INTERNALRAM 0
 SRVC var
-TR_BAUD_CONFIG TR_BAUD_115200
+TR_BAUD_CONFIG var
 WCP_PROF 0
 
 [sys.cfg]
--- a/scripts/config-headers-new.sh	Fri Mar 16 02:34:30 2018 +0000
+++ b/scripts/config-headers-new.sh	Fri Mar 16 04:04:38 2018 +0000
@@ -118,6 +118,12 @@
 fi
 export DSAMPLE_FULL_COLOR
 
+if [ -z "$TR_BAUD_CONFIG" ]
+then
+	TR_BAUD_CONFIG=TR_BAUD_115200
+fi
+export TR_BAUD_CONFIG
+
 # Derived settings only for the generation of *.cfg headers
 
 case "$RF" in