$ cd $ mkdir src $ cd src $ curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.gz |
$ tar zxvf
binutils-2.14.tar.gz |
$ cd binutils-2.14 $ mkdir build_arm $ cd build_arm |
$ ../configure
--prefix=/usr/local/gnu --program-suffix=-arm
--target=arm-gba-elf |
$ make |
$ sudo make install |
$ export
PATH=/usr/local/gnu/bin:$PATH |
$ ../configure
--prefix=/usr/local/gnu creating cache ./config.cache checking host system type... powerpc-apple-darwin7.0.0 checking target system type... powerpc-apple-darwin7.0.0 checking build system type... powerpc-apple-darwin7.0.0 *** This configuration is not supported in the following subdirectories: bfd binutils ld gas opcodes gprof (Any other directories should still work fine.) checking for powerpc-apple-darwin7.0.0-ar... no checking for ar... ar checking for powerpc-apple-darwin7.0.0-as... no checking for as... as checking for powerpc-apple-darwin7.0.0-dlltool... no checking for dlltool... dlltool checking for powerpc-apple-darwin7.0.0-ld... no checking for ld... ld checking for powerpc-apple-darwin7.0.0-nm... no checking for nm... nm checking for powerpc-apple-darwin7.0.0-ranlib... no checking for ranlib... ranlib checking for powerpc-apple-darwin7.0.0-windres... no checking for windres... windres checking for powerpc-apple-darwin7.0.0-objcopy... no checking for objcopy... objcopy checking for powerpc-apple-darwin7.0.0-objdump... no checking for objdump... objdump checking for powerpc-apple-darwin7.0.0-ar... no checking for ar... ar checking for powerpc-apple-darwin7.0.0-as... no checking for as... as checking for powerpc-apple-darwin7.0.0-dlltool... no checking for dlltool... dlltool checking for powerpc-apple-darwin7.0.0-ld... no checking for ld... ld checking for powerpc-apple-darwin7.0.0-nm... no checking for nm... nm checking for powerpc-apple-darwin7.0.0-ranlib... no checking for ranlib... ranlib checking for powerpc-apple-darwin7.0.0-windres... no checking for windres... windres checking whether to enable maintainer-specific portions of Makefiles... no updating cache ./config.cache creating ./config.status creating Makefile |
$ cd .. $ cd .. $ curl -O ftp://ftp.dti.ad.jp/pub/lang/gcc/releases/gcc-3.3.2/gcc-core-3.3.2.tar.bz2 |
$ tar jxvf
gcc-core-3.3.2.tar.bz2 |
$
cd gcc-3.3.2 $ mkdir build_arm $ cd build_arm |
$ echo $PATH $ ../configure --target=arm-gba-elf \ --prefix=/usr/local/gnu \ --program-suffix=-arm \ --disable-shared \ --disable-threads \ --disable-nls |
$
make |
$
sudo make install |
$
cd /usr/local/gnu/bin $ sudo ln -s arm-gba-elf-gcc gcc-arm |
$
cd $ cd src $ cd gcc-3.3.2 $ mkdir build_powerpc $ cd build_powerpc |
$
../configure --prefix=/usr/local/gnu |
$
make |
$ sudo make install |
$
gcc -v $ gcc -b arm-gba-elf -v $ gcc-arm -v |