h8300のクロスコンパイル環境
備忘録として。
まずbinutilsのコンパイル。バージョンは2.16.1。2.17や2.18はうまくコンパイルできんかった…。
$ tar jxf binutils-2.16.1.tar.bz2 $ cd binutils-2.16.1 $ mkdir build $ cd build $ ../configure --prefix=/usr/local/h8300-hms --target=h8300-hms $ make $ su <--ルートになって # make install
続いてgccのコンパイル。バージョンは4.2.3。また、newlibは1.16.0
$ PATH=$PATH:/usr/local/h8300-hms/bin $ tar zxf newlib-1.16.0.tar.gz $ tar jxf gcc-4.2.3.tar.bz2 $ cd gcc-4.2.3 $ ln -s ../newlib-1.16.0/newlib $ mkdir build $ cd build $ ../configure --prefix=/usr/local/h8300-hms --target=h8300-hms \ > --enable-languages=c,c++ --disable-nls --with-newlib $ make $ su <--ルートになって # make install
最後にnewlib。
$ cd newlib-1.16.0 $ mkdir build $ cd build $ ../configure --prefix=/usr/local/h8300-hms --target=h8300-hms $ make $ su <--ルートになって # make install