changeset 307:6d1eac845d3e

make it possible to enable SERIAL_DYNAMIC_SWITCH on the configure.sh line
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Nov 2017 05:49:53 +0000
parents 67d1fd7c824c
children 3f7095c785b7
files components/uart_drv configure.sh
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/components/uart_drv	Thu Nov 02 05:42:39 2017 +0000
+++ b/components/uart_drv	Thu Nov 02 05:49:53 2017 +0000
@@ -3,6 +3,11 @@
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
+if [ "$SERIAL_DYNAMIC_SWITCH" = 1 ]
+then
+	CPPFLAGS="$CPPFLAGS -DSERIAL_DYNAMIC_SWITCH"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app"
--- a/configure.sh	Thu Nov 02 05:42:39 2017 +0000
+++ b/configure.sh	Thu Nov 02 05:49:53 2017 +0000
@@ -52,6 +52,10 @@
 BUILD_DIR="build-$TARGET-$CONFIG"
 USE_STR2IND=0
 
+# tunable feature settings
+
+SERIAL_DYNAMIC_SWITCH=0
+
 # allow the user to override these defaults
 
 shift
@@ -152,6 +156,7 @@
 export BUILD_DIR TARGET USE_STR2IND
 export DISABLE_SLEEP
 export INIT_blob
+export SERIAL_DYNAMIC_SWITCH
 
 SUBDIR=
 LIBS=