# HG changeset patch
# User Space Falcon <falcon@ivan.Harhan.ORG>
# Date 1428287524 0
# Node ID a8d0bbba78868eedbfdc5209c4079b2d5d37cd33
# Parent  02c65d76881f2ff1682178319aff1c251c5d041f
build flashable images by default when PS is included and target has small RAM

diff -r 02c65d76881f -r a8d0bbba7886 gsm-fw/cfgmagic/defimage.c139
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/defimage.c139	Mon Apr 06 02:32:04 2015 +0000
@@ -0,0 +1,1 @@
+defimage.smallram
\ No newline at end of file
diff -r 02c65d76881f -r a8d0bbba7886 gsm-fw/cfgmagic/defimage.gtamodem
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/defimage.gtamodem	Mon Apr 06 02:32:04 2015 +0000
@@ -0,0 +1,1 @@
+defimage.smallram
\ No newline at end of file
diff -r 02c65d76881f -r a8d0bbba7886 gsm-fw/cfgmagic/defimage.smallram
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/defimage.smallram	Mon Apr 06 02:32:04 2015 +0000
@@ -0,0 +1,6 @@
+if [ "$CONFIG_INCLUDE_PS" = 1 ]
+then
+	BUILD_DEFAULT_IMAGE=flashImage
+else
+	BUILD_DEFAULT_IMAGE=ramImage
+fi
diff -r 02c65d76881f -r a8d0bbba7886 gsm-fw/cfgmagic/processconf.sh
--- a/gsm-fw/cfgmagic/processconf.sh	Mon Apr 06 01:48:17 2015 +0000
+++ b/gsm-fw/cfgmagic/processconf.sh	Mon Apr 06 02:32:04 2015 +0000
@@ -121,8 +121,14 @@
 
 export_to_mk BUILD_COMPONENTS
 
-# We can build flashable images now, but we still default to ramImage.
-BUILD_DEFAULT_IMAGE=ramImage
+# The default build image type depends on the target and features
+if [ -f "cfgmagic/defimage.$TARGET" ]
+then
+	. "cfgmagic/defimage.$TARGET"
+else
+	BUILD_DEFAULT_IMAGE=ramImage
+fi
+
 export_to_mk BUILD_DEFAULT_IMAGE
 
 # Now generate the output files!