# HG changeset patch # User Mychaela Falconia # Date 1509601793 0 # Node ID 6d1eac845d3e4f4a73fe144781f6858684017872 # Parent 67d1fd7c824c1152a7745c6f5fc6d91315335777 make it possible to enable SERIAL_DYNAMIC_SWITCH on the configure.sh line diff -r 67d1fd7c824c -r 6d1eac845d3e components/uart_drv --- 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" diff -r 67d1fd7c824c -r 6d1eac845d3e configure.sh --- 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=