comparison 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
comparison
equal deleted inserted replaced
206:9539929b3414 207:c70c077243dd
1 # feature mokoffs is applicable only when building gsm-fw for the Openmoko
2 # GTA0x GSM modem. This feature directs our fw to use the original FFS
3 # which contains the factory IMEI + RF calibration data and which the
4 # original mokoN firmware treats as writable.
5 #
6 # feature mokoffs -- use MokoFFS, but treat it as read-only
7 # feature mokoffs rw -- treat MokoFFS as R/W like the original fw does
8
9 if [ $TARGET != gtamodem ]
10 then
11 echo "Error: feature mokoffs is applicable only to target gtamodem" 1>&2
12 exit 1
13 fi
14
15 FFS_IN_RAM=0
16 CONFIG_MOKOFFS=1
17 export_to_c CONFIG_MOKOFFS
18
19 if [ "$2" = rw ]
20 then
21 CONFIG_FLASH_WRITE=1
22 else
23 CONFIG_FLASH_WRITE=0
24 fi
25 export_to_c CONFIG_FLASH_WRITE