Added flags to force software floating point math emulation.
authorPiotr Esden-Tempski <piotr@esden.net>
Sun, 14 Nov 2010 03:31:47 +0000 (19:31 -0800)
committerPiotr Esden-Tempski <piotr@esden.net>
Sun, 14 Nov 2010 04:16:42 +0000 (20:16 -0800)
This is not a very flexible solution. But as I have no mcu with a
floatingpoint unit to test the toolchain on ...

summon-arm-toolchain

index afbcbe4a3485db4683a1e63f392fa1b3bd51ce19..8663c07ee5debe89027e3005b57f0cfad86b6fe4 100755 (executable)
@@ -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}"