diff components/bmi @ 452:4d7c2ccb5814

config mechanism: high-level UI config made separate from target display drivers
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 14 Mar 2018 07:22:05 +0000
parents fd1d9063ad40
children
line wrap: on
line diff
--- a/components/bmi	Tue Mar 13 18:15:14 2018 +0000
+++ b/components/bmi	Wed Mar 14 07:22:05 2018 +0000
@@ -20,14 +20,20 @@
 CPPFLAGS="$CPPFLAGS -DMMI_EM_ENABLED"
 CPPFLAGS="$CPPFLAGS -DNO_ASCIIZ"
 
-if [ "$TARGET" != c139 -a "$TARGET" != c11x ]
-then
-	if [ "$DSAMPLE_FULL_COLOR" = 1 ]
-	then
+case "$UI_CONFIG" in
+	bigcolor)
 		CPPFLAGS="$CPPFLAGS -DCOLOURDISPLAY"
-	fi
-	CPPFLAGS="$CPPFLAGS -DLSCREEN"
-fi
+		CPPFLAGS="$CPPFLAGS -DLSCREEN"
+		;;
+	bigbw)
+		CPPFLAGS="$CPPFLAGS -DLSCREEN"
+		;;
+	84x48)
+		;;
+	*)
+		echo "Error: UI_CONFIG=$UI_CONFIG setting not understood" 1>&2
+		exit 1
+esac
 
 CPPFLAGS="$CPPFLAGS -DINT_PHONEBOOK"
 CPPFLAGS="$CPPFLAGS -DNEW_EDITOR"