FS#6734 by me: optionally build with -mthumb on ARM
commit60aef116e95e09821c708dc5718a86f0eeadf36a
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Fri, 11 Jun 2010 05:37:37 +0000 (11 05:37 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Fri, 11 Jun 2010 05:37:37 +0000 (11 05:37 +0000)
treec74d6ea7a340c5668ffae037bf05b60eac0b8b2a
parent97c858545a171d8b1aba27998e8c15b3de632408
FS#6734 by me: optionally build with -mthumb on ARM

You'll need a libgcc build with interworking enabled (our eabi gcc works)
Confirmed to work on Sansa AMS
Confirmed to boot on Gigabeat S
Not working on PP, linker generates invalid branches when mixing
ARM->thumb switches and long calls

Build time will be about 50% longer, because the gcc wrapper script
tries to build everything with -mthumb and falls back to default if it
fails (for example if the file uses inline ARM-only assembly)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26760 a1c6a512-1295-4272-9138-f99709370657
tools/configure
tools/thumb-cc.py [new file with mode: 0755]