X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=summon-arm-toolchain;h=8663c07ee5debe89027e3005b57f0cfad86b6fe4;hb=0beded154984260dded10b507e3a7052c69f2b78;hp=f4e7c47fff3858def73f55c4ea4679d529fd5bec;hpb=b9832923181344ca6b9799f3241ae204a9337e23;p=fw%2Fcortex-toolchain diff --git a/summon-arm-toolchain b/summon-arm-toolchain index f4e7c47..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}" @@ -348,7 +349,7 @@ if [ ! -e ${STAMPS}/${GDB}.build ]; then fi if [ ${LIBSTM32_EN} != 0 ]; then -if [ ! -e .libcmsis-${LIBCMSIS}.build ]; then +if [ ! -e ${STAMPS}/libcmsis-${LIBCMSIS}.build ]; then unpack libcmsis-${LIBCMSIS} cd libcmsis-${LIBCMSIS} log "Building libcmsis-${LIBCMSIS}" @@ -356,11 +357,11 @@ if [ ! -e .libcmsis-${LIBCMSIS}.build ]; then install libcmsis-${LIBCMSIS} arch_prefix=${TARGET} prefix=${PREFIX} install cd .. log "Cleaning up libcmsis-${LIBCMSIS}" - touch .libcmsis-${LIBCMSIS}.build + touch ${STAMPS}/libcmsis-${LIBCMSIS}.build rm -rf libcmsis-${LIBCMSIS} fi -if [ ! -e .libstm32-${LIBSTM32}.build ]; then +if [ ! -e ${STAMPS}/libstm32-${LIBSTM32}.build ]; then unpack libstm32-${LIBSTM32} cd libstm32-${LIBSTM32} log "Building libstm32-${LIBSTM32}" @@ -368,11 +369,11 @@ if [ ! -e .libstm32-${LIBSTM32}.build ]; then install libstm32-${LIBSTM32} arch_prefix=${TARGET} prefix=${PREFIX} install cd .. log "Cleaning up libstm32-${LIBSTM32}" - touch .libstm32-${LIBSTM32}.build + touch ${STAMPS}/libstm32-${LIBSTM32}.build rm -rf libstm32-${LIBSTM32} fi -if [ ! -e .libstm32usb-${LIBSTM32USB}.build ]; then +if [ ! -e ${STAMPS}/libstm32usb-${LIBSTM32USB}.build ]; then unpack libstm32usb-${LIBSTM32USB} cd libstm32usb-${LIBSTM32USB} log "Building libstm32usb-${LIBSTM32USB}" @@ -380,12 +381,13 @@ if [ ! -e .libstm32usb-${LIBSTM32USB}.build ]; then install libstm32usb-${LIBSTM32USB} arch_prefix=${TARGET} prefix=${PREFIX} install cd .. log "Cleaning up libstm32usb-${LIBSTM32USB}" - touch .libstm32usb-${LIBSTM32USB}.build + touch ${STAMPS}/libstm32usb-${LIBSTM32USB}.build rm -rf libstm32usb-${LIBSTM32USB} fi fi if [ $LIBOPENSTM32_EN != 0 ]; then +if [ ! -e ${STAMPS}/libopenstm32-${LIBOPENSTM32}.build ]; then unpack libopenstm32-${LIBOPENSTM32} cd libopenstm32-${LIBOPENSTM32} log "Building libopenstm32-${LIBOPENSTM32}" @@ -393,6 +395,7 @@ if [ $LIBOPENSTM32_EN != 0 ]; then install libopenstm32-${LIBOPENSTM32} PREFIX=${TARGET} DESTDIR=${PREFIX} install cd .. log "Cleaning up libopenstm32-${LIBOPENSTM32}" - touch .libopenstm32-${LIBOPENSTM32}.build + touch ${STAMPS}/libopenstm32-${LIBOPENSTM32}.build rm -rf libopenstm32-${LIBOPENSTM32} fi +fi