changeset 828:a8d0bbba7886

build flashable images by default when PS is included and target has small RAM
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 06 Apr 2015 02:32:04 +0000
parents 02c65d76881f
children f74c5d3d3b06
files gsm-fw/cfgmagic/defimage.c139 gsm-fw/cfgmagic/defimage.gtamodem gsm-fw/cfgmagic/defimage.smallram gsm-fw/cfgmagic/processconf.sh
diffstat 4 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /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
--- /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
--- /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
--- 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!