Mar 2015
At your own risk.
$ apt-get build-dep binutils # buildに必要なものをインストール $ apt-get source binutils # sourceをGET $ dpkg-source -x binutls_x.xx.dsc # 必要ならsourceを展開 $ cd binutils_x.xx $ QUILT_PATCHES=./debian/patches quilt --quiltrc /dev/null push -a # 必要ならpatchを適応 $ mkdir build_$TARGET $ cd build_$TARGET $ ../configure --target=$TARGET --disable-nls --prefix=/opt/embgcc $ make $ make install
$ apt-get build-dep gcc-x.x # buildに必要なものをインストール $ apt-get source gcc-x.x # sourceをGET $ dpkg-source -x gcc-x.x_x.x.x.dsc # 必要ならsourceを展開 $ cd gcc-x.x_x.x.x $ ./debian/rules unpack # ソースを展開 $ ./debian/rules patch # patchを適応 $ mkdir build_$TARGET $ cd build_$TARGET $ ../src/configure --target=$TARGET --prefix=/opt/embgcc --enable-languages=c --disable-nls --disable-threads --disable-shared --disable-libquadmath --disable-libssp $ make $ make install
$ apt-get build-dep gdb # buildに必要なものをインストール $ apt-get source gdb # sourceをGET $ dpkg-source -x gdb-x.x.x # 必要ならsourceを展開 $ cd gdb-x.x.x $ QUILT_PATCHES=./debian/patches quilt --quiltrc /dev/null push -a # 必要ならpatchを適応 $ mkdir build_$TARGET $ cd build_$TARGET $ ../configure --target=$TARGET --disable-nls --prefix=/opt/embgcc $ make $ make install
$ apt-get install newlib-source # sourceをGET $ tar xvf /usr/src/newlib/newlib-x.x.x.tar.xz # sourceを展開 $ cd newlib-x.x.x $ mkdir build_$TARGET $ cd build_$TARGET $ ../configure --target=$TARGET --prefix=/opt/embgcc $ make $ make install