<feed xmlns='http://www.w3.org/2005/Atom'>
<title>librambutan/support/ld/stm32/mem, branch legacy</title>
<subtitle>[no description]</subtitle>
<id>https://git.bnewbold.net/librambutan/atom?h=legacy</id>
<link rel='self' href='https://git.bnewbold.net/librambutan/atom?h=legacy'/>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/librambutan/'/>
<updated>2014-04-23T20:22:41Z</updated>
<entry>
<title>Adding BOOTLOADER option to support Robotis bootloader different ROM</title>
<updated>2014-04-23T20:22:41Z</updated>
<author>
<name>Gregwar</name>
<email>g.passault@gmail.com</email>
</author>
<published>2014-04-23T14:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/librambutan/commit/?id=3c8ded4743c09a7b0c7737392d4e4c15e6959852'/>
<id>urn:sha1:3c8ded4743c09a7b0c7737392d4e4c15e6959852</id>
<content type='text'>
Signed-off-by: Grégoire Passault &lt;g.passault@gmail.com&gt;
</content>
</entry>
<entry>
<title>Rework linker scripts.</title>
<updated>2012-06-07T07:44:31Z</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-06T22:06:48Z</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/librambutan/commit/?id=5838b447f675444b154bacd205ebf9f47d003b2f'/>
<id>urn:sha1:5838b447f675444b154bacd205ebf9f47d003b2f</id>
<content type='text'>
Having separate linker scripts for all the boards is a bad idea. Most
boards really only need to specify MEMORY and the appropriate
REGION_ALIASES() so that support/ld/common.inc can do its work. Not
having infrastructure for this leads to duplication -- viz. the Maple
Mini linker scripts are identical to the Maple's, and the
olimex_stm32_h103 linker directory is just a symlink to
Maple's. Clearly, the current structure is wrong.

To fix it, instead of having per-board subdirectories of support/ld/,
add per-MEMORY subdirectories of (new) support/ld/stm32/mem/. The
per-board .mk files under support/mk/board-includes/ now reference
these directly, and target-config.mk and the Makefile handle this
appropriately. We move some other stuff around in target-config.mk to
make this all more convenient, and even allow more overriding of the
libmaple defaults on a per-board basis. Custom board hacks will be
easier now.

Unfortunately, lots of duplication under support/ld/stm32/mem/ is
necessary, as the LENGTH attribute in a MEMORY region specification
doesn't support arithmetic expressions, and ld doesn't seem to have
any way to specify MEMORY at the command line (why?!). If we find a
better way than this, we should do it.

If a board (e.g. Maple Native) _does_ really need special
memory-related configuration, you can always put a per-board
subdirectory of support/ld/stm32/mem. We do this here to configure the
heap.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
</feed>
