diff options
| author | Piotr Esden-Tempski <piotr@esden.net> | 2010-11-13 19:31:47 -0800 | 
|---|---|---|
| committer | Piotr Esden-Tempski <piotr@esden.net> | 2010-11-13 20:16:42 -0800 | 
| commit | 0beded154984260dded10b507e3a7052c69f2b78 (patch) | |
| tree | 01a9024b99b6d52036d7ae546fa507e105ae60e0 | |
| parent | 7df1edb6a20980d0069d5fff5d119d7498259c8f (diff) | |
Added flags to force software floating point math emulation.
This is not a very flexible solution. But as I have no mcu with a
floatingpoint unit to test the toolchain on ...
| -rwxr-xr-x | summon-arm-toolchain | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/summon-arm-toolchain b/summon-arm-toolchain index afbcbe4..8663c07 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -69,7 +69,7 @@ if [ ${DEFAULT_TO_CORTEX_M3} == 0 ] ; then  	GCCFLAGS=  else  	# To default to the Cortex-M3: -	GCCFLAGS="--with-arch=armv7-m --with-mode=thumb" +	GCCFLAGS="--with-arch=armv7-m --with-mode=thumb --with-float=soft"  fi  # Pull in the local configuration, if any @@ -291,9 +291,10 @@ if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then                           --with-gnu-ld \                           --disable-nls \                           --disable-werror \ -                         --disable-newlib-supplied-syscalls +                         --disable-newlib-supplied-syscalls \ +			 --with-float=soft      log "Building ${NEWLIB}" -    make ${MAKEFLAGS} +    make ${MAKEFLAGS} CFLAGS_FOR_TARGET="-msoft-float" CCASFLAGS="-msoft-float"      install ${NEWLIB} install      cd ..      log "Cleaning up ${NEWLIB}" | 
