changeset 235:ee04ca45053d

config system: add FCBM
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 May 2021 10:36:52 +0000
parents 0faa72eaedcb
children 3c790d29748e
files configure.sh scripts/config-headers.sh scripts/make-rv-swe-hdr.sh
diffstat 3 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.sh	Sat May 01 10:19:15 2021 +0000
+++ b/configure.sh	Sat May 01 10:36:52 2021 +0000
@@ -271,6 +271,7 @@
 		build_lib icn
 	fi
 	build_lib mfw
+	build_lib fcbm
 fi
 
 # G23M protocol stack libs
--- a/scripts/config-headers.sh	Sat May 01 10:19:15 2021 +0000
+++ b/scripts/config-headers.sh	Sat May 01 10:36:52 2021 +0000
@@ -130,6 +130,17 @@
 fi
 export TR_BAUD_CONFIG
 
+# FCBM_STATE is a derived setting from $MMI in normal configure.sh operation,
+# and it also defaults to 0 (disabled) for manual invokation.
+
+if [ "$MMI" = 2 ]
+then
+	FCBM_STATE=1
+else
+	FCBM_STATE=0
+fi
+export FCBM_STATE
+
 # Derived settings only for the generation of *.cfg headers
 
 case "$RF" in
--- a/scripts/make-rv-swe-hdr.sh	Sat May 01 10:19:15 2021 +0000
+++ b/scripts/make-rv-swe-hdr.sh	Sat May 01 10:36:52 2021 +0000
@@ -44,5 +44,10 @@
 echo '#define RVM_RTC_SWE'
 echo '#define RVM_FFS_SWE'
 
+if [ "$FCBM_STATE" = 1 ]
+then
+	echo '#define RVM_FCBM_SWE'
+fi
+
 echo
 echo '#endif /* __RV_SWE_H__ */'