分类: LINUX
2008-05-13 15:33:26
①
②
③
④
⑤
⑥
⑦
⑧
⑨
⑩
⑪
⑫
TARGET=arm-iwmmxt-linux-gnueabi TARGET_CFLAGS="-O" GCC_EXTRA_CONFIG="--with-float=soft --with-cpu=iwmmxt --with-arch=iwmmxt --enable-cxx-flags=-msoft-float" GLIBC_EXTRA_CONFIG="--without-fp --disable-libunwind-exceptions" GLIBC_EXTRA_CC_ARGS="-finline-limit=10000" USE_SYSROOT=1 |
BINUTILS_DIR=binutils-2.18 GCC_DIR=gcc-4.2.1 LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.22.6 GLIBC_DIR=glibc-2.6.1 GLIBCPORTS_FILENAME=glibc-ports-2.6.1 GLIBC_ADDON_OPTIONS=ports,nptl |
#!/bin/sh set -ex TARBALLS_DIR=$HOME/crosstool/downloads RESULT_TOP=/opt/crosstool GCC_LANGUAGES="c,c++" export GCC_LANGUAGES PARALLELMFLAGS=-j3 export PARALLELMFLAGS # Really, you should do the mkdir before running this, # and chown /opt/crosstool to yourself so you don't need to run as root. mkdir -p $RESULT_TOP # Build the toolchain. Takes a couple hours and a couple gigabytes. time eval `cat arm-iwmmxt-eabi.dat latest.dat` sh all.sh --notest echo Done. |
if test "$opt_no_unpack" = ""; then if test "$opt_builduserland" = "1"; then # Ah, nobody would want to change this :-) PTXDIST_DIR=ptxdist-testing-20031113 export PTXDIST_DIR fi # Download and patch ##################commented out by aaron############## # if test -d "$BUILD_DIR"; then # Remove in background # mv $BUILD_DIR $BUILD_DIR.del.$$ # rm -rf $BUILD_DIR.del.$$ & # fi # mkdir -p $BUILD_DIR # sh getandpatch.sh ####################################################### fi |
# Arbitrary locations for the input and output of the build. # Change or override these to your taste. #################commented out by aaron######################## #TARBALLS_DIR=${TARBALLS_DIR-$TOP_DIR/tarballs} #RESULT_TOP=${RESULT_TOP-$TOP_DIR/result} ############################################################### ####################modified by aaron########################## #PREFIX=${PREFIX-$RESULT_TOP/$TOOLCOMBO/$TARGET} PREFIX=$RESULT_TOP |
if test "$opt_no_build" = ""; then # Build ###################commented out by aaron################ # if [ -d "$PREFIX" ]; then # Remove in background for speed # mv "$PREFIX" "$PREFIX.del.$$" # rm -rf "$PREFIX.del.$$" & # fi # mkdir -p $PREFIX # mkdir -p $BUILD_DIR ########################################################## cd $BUILD_DIR |
cp -r include/linux $HEADERDIR cp -r include/asm-${ARCH} $HEADERDIR/asm ################added by aaron######################### cp -r include/asm-generic $HEADERDIR/asm-generic cd $BUILD_DIR |
# if host is cygwin and this is not a canadian build, modify GCC_HOST ########################commented out by aaron################################ #case "$GCC_HOST,$CANADIAN_BUILD," in #*cygwin*,?*,) ;; #*) GCC_HOST=`echo $GCC_HOST | sed s/-/-host_/` ;; #esac ############################################################################## |