Changes to update Tomato RAF.
[tomato.git] / toolchain / build26.sh
blob04f52bd0c39ff48b165d9872ae60047c6b147364
1 #########################################################################
2 # Toolchain Build Script #
3 #########################################################################
5 GCCVER=4.2.4
7 ROOTDIR=$PWD
8 TARGETDIR=hndtools-mipsel-uclibc-${GCCVER}
9 DESTDIR=/opt/brcm/${TARGETDIR}
11 make -C ../release/src-rt prepk
13 cd /opt/brcm
14 mkdir -p K26
15 rm -rf K26/hndtools-mipsel-uclibc-${GCCVER}
16 cd $ROOTDIR
18 rm -f .config
19 ln -sf config.2.6-${GCCVER} .config
20 make clean; make dirclean; make V=99
22 cd $DESTDIR/bin
23 ln -nsf mipsel-linux-uclibc-gcc-${GCCVER} mipsel-linux-uclibc-gcc
24 ln -nsf mipsel-linux-uclibc-gcc-${GCCVER} mipsel-linux-gcc-${GCCVER}
25 ln -nsf mipsel-linux-uclibc-gcc-${GCCVER} mipsel-uclibc-gcc-${GCCVER}
27 cd /opt/brcm
28 rm -f hndtools-mipsel-linux
29 rm -f hndtools-mipsel-uclibc
31 mkdir -p K26
32 rm -rf K26/hndtools-mipsel-uclibc-${GCCVER}
33 mv -f hndtools-mipsel-uclibc-${GCCVER} K26/
35 ln -nsf K26/hndtools-mipsel-uclibc-${GCCVER} hndtools-mipsel-linux
36 ln -nsf K26/hndtools-mipsel-uclibc-${GCCVER} hndtools-mipsel-uclibc
38 cd $ROOTDIR