changeset 258:13bcc2ed7e44

configure.sh & targets/*.conf: emit FLASH_BASE_ADDR & FLASH_SECTOR_SIZE into the generated Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 04 Aug 2017 07:14:16 +0000
parents d4d07c751e56
children 2bb8b1c11afc
files configure.sh targets/c139.conf targets/fcdev3b.conf targets/gtamodem.conf targets/pirelli.conf
diffstat 5 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.sh	Fri Aug 04 06:54:12 2017 +0000
+++ b/configure.sh	Fri Aug 04 07:14:16 2017 +0000
@@ -195,6 +195,10 @@
 	echo >> $BUILD_DIR/Makefile
 fi
 
+helpers/makeline def FLASH_BASE_ADDR $FLASH_BASE_ADDR >> $BUILD_DIR/Makefile
+helpers/makeline def FLASH_SECTOR_SIZE $FLASH_SECTOR_SIZE >> $BUILD_DIR/Makefile
+echo >> $BUILD_DIR/Makefile
+
 cat makefile-frags/first-part >> $BUILD_DIR/Makefile
 
 if [ "$USE_STR2IND" = 1 ]
--- a/targets/c139.conf	Fri Aug 04 06:54:12 2017 +0000
+++ b/targets/c139.conf	Fri Aug 04 07:14:16 2017 +0000
@@ -2,3 +2,5 @@
 MAIN_blob=blobs/patches/main-rvtmodem.lib
 INIT_blob=blobs/patches/main-rvtmodem/init.obj
 TPUDRV_blob=
+FLASH_BASE_ADDR=0x10000
+FLASH_SECTOR_SIZE=0x10000
--- a/targets/fcdev3b.conf	Fri Aug 04 06:54:12 2017 +0000
+++ b/targets/fcdev3b.conf	Fri Aug 04 07:14:16 2017 +0000
@@ -3,3 +3,5 @@
 MAIN_blob=blobs/patches/main-fchw.lib
 INIT_blob=blobs/patches/main-fchw/init.obj
 TPUDRV_blob=blobs/libs/tpudrv.lib
+FLASH_BASE_ADDR=0
+FLASH_SECTOR_SIZE=0x40000
--- a/targets/gtamodem.conf	Fri Aug 04 06:54:12 2017 +0000
+++ b/targets/gtamodem.conf	Fri Aug 04 07:14:16 2017 +0000
@@ -2,3 +2,5 @@
 MAIN_blob=blobs/libs/main.lib
 INIT_blob=blobs/obj/main/init.obj
 TPUDRV_blob=blobs/libs/tpudrv.lib
+FLASH_BASE_ADDR=0
+FLASH_SECTOR_SIZE=0x10000
--- a/targets/pirelli.conf	Fri Aug 04 06:54:12 2017 +0000
+++ b/targets/pirelli.conf	Fri Aug 04 07:14:16 2017 +0000
@@ -3,3 +3,5 @@
 MAIN_blob=blobs/patches/main-pirelli.lib
 INIT_blob=blobs/patches/main-pirelli/init.obj
 TPUDRV_blob=
+FLASH_BASE_ADDR=0
+FLASH_SECTOR_SIZE=0x40000