FreeCalypso > hg > freecalypso-sw
changeset 208:2abe6ade042d
gsm-fw FFS integration: ld script magic putting RAMFFS into ext.ram
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 25 Dec 2013 19:47:54 +0000 |
parents | c70c077243dd |
children | 6f4a12b4582f |
files | gsm-fw/finlink/ld-script.src |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/finlink/ld-script.src Wed Dec 25 08:40:20 2013 +0000 +++ b/gsm-fw/finlink/ld-script.src Wed Dec 25 19:47:54 2013 +0000 @@ -21,6 +21,10 @@ IRAM : ORIGIN = 0x00800000, LENGTH = CONFIG_IRAM_SIZE XRAM : ORIGIN = 0x01000000, LENGTH = CONFIG_XRAM_SIZE } +ifelse(FFS_IN_RAM,1,` +RAMFFS_BLKSIZE_BYTES = 1 << RAMFFS_BLKSIZE_LOG2; +RAMFFS_TOTAL_SIZE = RAMFFS_BLKSIZE_BYTES * RAMFFS_NBLOCKS; +')dnl SECTIONS { /* XIP code, going into flash or XRAM emulating flash */ @@ -105,6 +109,10 @@ ext.ram (NOLOAD) : { *(ext.ram*) . = ALIGN(4); +ifelse(FFS_IN_RAM,1, +` _RAMFFS_area = .; + . += RAMFFS_TOTAL_SIZE; +')dnl _xram_end = .; } > XRAM }