- log "Building ${GCC}-boot"
- make ${MAKEFLAGS} all-gcc
- install ${GCC}-boot install-gcc
- cd ..
- log "Cleaning up ${GCC}-boot"
- touch ${STAMPS}/${GCC}-boot.build
- rm -rf build/* ${GCC}
-fi
-
-if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then
- unpack ${NEWLIB}
- cd build
- log "Configuring ${NEWLIB}"
- ../${NEWLIB}/configure --target=${TARGET} \
- --prefix=${PREFIX} \
- --enable-interwork \
- --enable-multilib \
- --with-gnu-as \
- --with-gnu-ld \
- --disable-nls \
- --disable-werror \
- --disable-newlib-supplied-syscalls \
- --with-float=soft
- log "Building ${NEWLIB}"
- make ${MAKEFLAGS} CFLAGS_FOR_TARGET="-msoft-float" CCASFLAGS="-msoft-float"
- install ${NEWLIB} install
- cd ..
- log "Cleaning up ${NEWLIB}"
- touch ${STAMPS}/${NEWLIB}.build
- rm -rf build/* ${NEWLIB}
-fi
-
-# Yes, you need to build gcc again!
-if [ ! -e ${STAMPS}/${GCC}.build ]; then
- unpack ${GCC}
- cd build
- log "Configuring ${GCC}"
- ../${GCC}/configure --target=${TARGET} \
- --prefix=${PREFIX} \
- --enable-interwork \
- --enable-multilib \
- --enable-languages="c,c++" \
- --with-newlib \
- --disable-shared \
- --with-gnu-as \
- --with-gnu-ld \
- --disable-nls \
- --disable-werror \
- --with-system-zlib \
- ${GCCFLAGS}
- log "Building ${GCC}"