diff gsm-fw/cfgmagic/feature.mokoffs @ 207:c70c077243dd

gsm-fw: beginning of config magic for FFS
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 25 Dec 2013 08:40:20 +0000
parents
children 6ffebb8cec78
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/feature.mokoffs	Wed Dec 25 08:40:20 2013 +0000
@@ -0,0 +1,25 @@
+# feature mokoffs is applicable only when building gsm-fw for the Openmoko
+# GTA0x GSM modem.  This feature directs our fw to use the original FFS
+# which contains the factory IMEI + RF calibration data and which the
+# original mokoN firmware treats as writable.
+#
+# feature mokoffs	-- use MokoFFS, but treat it as read-only
+# feature mokoffs rw	-- treat MokoFFS as R/W like the original fw does
+
+if [ $TARGET != gtamodem ]
+then
+	echo "Error: feature mokoffs is applicable only to target gtamodem" 1>&2
+	exit 1
+fi
+
+FFS_IN_RAM=0
+CONFIG_MOKOFFS=1
+export_to_c	CONFIG_MOKOFFS
+
+if [ "$2" = rw ]
+then
+	CONFIG_FLASH_WRITE=1
+else
+	CONFIG_FLASH_WRITE=0
+fi
+export_to_c	CONFIG_FLASH_WRITE