#/bin/bash # YAATOBS - yet another arm toolchain build script # # Copyright (C) 2009 Torsten Brischalle # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see binutils-${BINUTILS_VERSION}-cfg.txt echo make "build binutils" make ${MAKE_OPTIONS} > binutils-${BINUTILS_VERSION}-make.txt sudo make install > binutils-${BINUTILS_VERSION}-inst.txt cd .. read -p "***** build gcc basic version, press any key to continue *****" cd gcc-${GCC_VERSION}-obj echo "configure gcc" sudo ../gcc-${GCC_VERSION}/configure ${GCC_FLAGS} --with-newlib --with-headers=../newlib-${NEWLIB_VERSION}/newlib/libc/include --disable-libssp > gcc-${GCC_VERSION}-cfg.txt echo "build gcc" sudo make ${MAKE_OPTIONS} all-gcc > gcc-${GCC_VERSION}-make.txt sudo make install-gcc > gcc-${GCC_VERSION}-inst.txt cd .. read -p "***** build newlib, press any key to continue *****" cd newlib-${NEWLIB_VERSION}-obj echo "configure newlib" ../newlib-${NEWLIB_VERSION}/configure ${NEWLIB_FLAGS} > newlib-${NEWLIB_VERSION}-cfg.txt echo "build newlib" make ${MAKE_OPTIONS} > newlib-${NEWLIB_VERSION}-make.txt sudo make install > newlib-${NEWLIB_VERSION}-inst.txt cd .. read -p "***** build gcc full, press any key to continue *****" cd gcc-${GCC_VERSION}-obj sudo make ${MAKE_OPTIONS} all > gcc-${GCC_VERSION}-make.txt sudo make install > gcc-${GCC_VERSION}-inst.txt cd .. read -p "***** Press any key to continue *****" cd gdb-${GDB_VERSION}-obj echo "configure gdb" ../gdb-${GDB_VERSION}/configure ${GDB_FLAGS} > gdb-${GDB_VERSION}-cfg.txt echo "build gdb" make ${MAKE_OPTIONS} > gdb-${GDB_VERSION}-make.txt sudo make install > gdb-${GDB_VERSION}-inst.txt cd .. echo "toolchain build finished"