##############################################################################
TARGET=arm-none-eabi # Or: TARGET=arm-elf
PREFIX=${HOME}/sat # Install location of your final toolchain
-PARALLEL= # Or: PARALLEL="-j 5" for 4 CPUs
DARWIN_OPT_PATH=/opt/local # Path in which MacPorts or Fink is installed
# Set to 'sudo' if you need superuser privileges while installing
SUDO=
GCCURL=http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.gz
else
# For the Linaro GCC:
- GCCVERSION=4.5-2010.08-1
+ GCCRELEASE=4.5-2010.11-0
+ GCCVERSION=4.5-2010.11-1
GCC=gcc-linaro-${GCCVERSION}
- GCCURL=http://launchpad.net/gcc-linaro/4.5/${GCCVERSION}/+download/${GCC}.tar.gz
+ GCCURL=http://launchpad.net/gcc-linaro/4.5/${GCCRELEASE}/+download/${GCC}.tar.bz2
fi
BINUTILS=binutils-2.20
# Flags section
##############################################################################
+CPUS=$(getconf _NPROCESSORS_ONLN)
+PARALLEL=-j$((CPUS + 1))
+echo "${CPUS} cpu's detected running make with '${PARALLEL}' flag"
+
GDBFLAGS=
BINUTILFLAGS=
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
--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}"