This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
#!/bin/sh # usage: toolchain [m68k, arm, bfin] [gcc version] # ex. sh toolchain m68k 4.2.4
case "$1" in 'm68k') cpu=$1 bin_ver=2.18 gcc_ver=$2 nlb_ver=1.16.0 gdb_ver=6.7.1 ;; 'arm') cpu=$1 bin_ver=2.18 gcc_ver=$2 nlb_ver=1.16.0 gdb_ver=6.7.1 ;; 'bfin') cpu=$1 bin_ver=2.18 gcc_ver=$2 nlb_ver=1.16.0 gdb_ver=6.7.1 ;; *) echo CPU not supported ... exit 127 ;; esac
TARGET=$cpu-elf BIN_VER=$bin_ver GCC_VER=$gcc_ver NLB_VER=$nlb_ver GDB_VER=$gdb_ver
echo " - Create an alias of the library" cd $TARGET_DIR/GCC/gcc-$GCC_VER ln -s ../newlib-$NLB_VER/newlib . ln -s ../newlib-$NLB_VER/libgloss .
export prefix=$TARGET_DIR/cross/gcc-$GCC_VER/$TARGET export i=$prefix/bin
echo " Build the tools" mkdir -p $TARGET_DIR/builds/gcc-$GCC_VER/$TARGET/binutils-$BIN_VER cd $TARGET_DIR/builds/gcc-$GCC_VER/$TARGET/binutils-$BIN_VER ../../../../GCC/binutils-$BIN_VER/configure --target=$TARGET \ --prefix=$prefix \ --enable-multilib make make install make clean
echo " - Build the compiler" cd $TARGET_DIR/builds/gcc-$GCC_VER/$TARGET mkdir gcc-$GCC_VER cd gcc-$GCC_VER ../../../../GCC/gcc-$GCC_VER/configure --target=$TARGET \ --prefix=$prefix \ --enable-multilib \ --enable-languages=c \ --with-newlib \ --enable-newlib-io-long-long \ --with-gnu-as \ --with-gnu-ld make "CFLAGS = -DREENTRANT_SYSCALLS_PROVIDED" make install make clean
echo " - Build the gdb" cd $TARGET_DIR/builds/gcc-$GCC_VER/$TARGET mkdir gdb-$GDB_VER cd gdb-$GDB_VER ../../../../GCC/gdb-$GDB_VER/configure --target=$TARGET \ --prefix=$prefix \ --enable-multilib make make install make clean
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |