changeset 630:4cd1dcc167e4

gsm-fw/cfgmagic: preparations for building flash images (sane vs. Compal)
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 01 Sep 2014 09:28:09 +0000
parents e7ba9fcb3637
children 7cf154cd3891
files gsm-fw/cfgmagic/processconf.sh gsm-fw/cfgmagic/target.c139 gsm-fw/cfgmagic/target.c155
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/cfgmagic/processconf.sh	Mon Sep 01 08:32:22 2014 +0000
+++ b/gsm-fw/cfgmagic/processconf.sh	Mon Sep 01 09:28:09 2014 +0000
@@ -20,6 +20,7 @@
 RVTMUX_UART_port=IrDA
 RVTMUX_UART_baud=115200
 FLASH_BOOT_VIA_BOOTROM=1
+FLASHIMAGE_BASE_ADDR=0x2000
 
 . ./build.conf
 
@@ -61,6 +62,10 @@
 	export_to_m4	RAMFFS_BLKSIZE_LOG2 RAMFFS_NBLOCKS
 fi
 
+# Sane vs. Compal target differences for flash boot
+export_to_c	FLASH_BOOT_VIA_BOOTROM
+export_to_m4	FLASH_BOOT_VIA_BOOTROM FLASHIMAGE_BASE_ADDR
+
 # L1 configuration
 if [ "$CONFIG_GSM" = 1 -a "$CONFIG_L1_STANDALONE" = 1 ]
 then
--- a/gsm-fw/cfgmagic/target.c139	Mon Sep 01 08:32:22 2014 +0000
+++ b/gsm-fw/cfgmagic/target.c139	Mon Sep 01 09:28:09 2014 +0000
@@ -3,6 +3,7 @@
 export_to_c	CONFIG_TARGET_C139
 export_to_c	CONFIG_TARGET_COMPAL
 FLASH_BOOT_VIA_BOOTROM=0
+FLASHIMAGE_BASE_ADDR=0x10000
 
 CONFIG_IRAM_SIZE=0x40000
 CONFIG_XRAM_SIZE=0x80000
--- a/gsm-fw/cfgmagic/target.c155	Mon Sep 01 08:32:22 2014 +0000
+++ b/gsm-fw/cfgmagic/target.c155	Mon Sep 01 09:28:09 2014 +0000
@@ -3,6 +3,7 @@
 export_to_c	CONFIG_TARGET_C155
 export_to_c	CONFIG_TARGET_COMPAL
 FLASH_BOOT_VIA_BOOTROM=0
+FLASHIMAGE_BASE_ADDR=0x20000
 
 CONFIG_IRAM_SIZE=0x40000
 CONFIG_XRAM_SIZE=0x200000