diff gsm-fw/cfgmagic/post-target @ 937:631fb20ff8d4

gsm-fw/cfgmagic: beginning of support for Intel single bank flash (Compal) in addition to the currently supported AMD multibank (Openmoko and Pirelli)
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 31 Oct 2015 21:50:43 +0000
parents 2c9c2b95ddec
children
line wrap: on
line diff
--- a/gsm-fw/cfgmagic/post-target	Sat Oct 31 08:31:26 2015 +0000
+++ b/gsm-fw/cfgmagic/post-target	Sat Oct 31 21:50:43 2015 +0000
@@ -112,6 +112,28 @@
 fi
 export_to_c	RF_PA
 
+if [ -z "$Flash_type" ]
+then
+	echo "Error: target.$TARGET failed to define Flash_type" 1>&2
+	exit 1
+fi
+
+case "$Flash_type" in
+	AMD-multi*)
+		FLASH_IS_AMD_MULTIBANK=1
+		export_to_c	FLASH_IS_AMD_MULTIBANK
+		;;
+	Intel-single* | Intel-one*)
+		FLASH_IS_INTEL_ONEBANK=1
+		export_to_c	FLASH_IS_INTEL_ONEBANK
+		export_to_mk	FLASH_IS_INTEL_ONEBANK
+		;;
+	*)
+		echo "Error: unknown Flash_type=$Flash_type" 1>&2
+		exit 1
+		;;
+esac
+
 # !!! Dirty hack !!!
 #
 # All targets which we currently support or have realistic prospects of