1 #########################################################################
2 # Toolchain Build Script #
3 #########################################################################
8 TARGETDIR1
=hndtools-mipsel-uclibc-
${GCCVER1}
9 DESTDIR1
=/opt
/brcm
/${TARGETDIR1}
12 TARGETDIR2
=hndtools-mipsel-uclibc-
${GCCVER2}
13 DESTDIR2
=/opt
/brcm
/${TARGETDIR2}
15 make -C ..
/release
/src prepk
17 #########################################################################
21 ln -sf config
.2.4-${GCCVER1} .config
22 make clean
; make dirclean
; make V
=99
25 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-linux-uclibc-gcc
26 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-linux-gcc-
${GCCVER1}
27 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-uclibc-gcc-
${GCCVER1}
29 #########################################################################
33 ln -sf config
.2.4-${GCCVER2} .config
34 make clean
; make dirclean
; make V
=99
37 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER2} mipsel-linux-uclibc-gcc
38 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER2} mipsel-linux-gcc-
${GCCVER2}
39 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER2} mipsel-uclibc-gcc-
${GCCVER2}
41 #########################################################################
43 mv -f ${DESTDIR1}/bin/mipsel-linux-uclibc-gcc-${GCCVER1} ${DESTDIR2}/bin
/
44 mv -f ${DESTDIR1}/include/c++/${GCCVER1} ${DESTDIR2}/include
/c
++/
45 mv -f ${DESTDIR1}/lib/gcc/mipsel-linux-uclibc/${GCCVER1} ${DESTDIR2}/lib
/gcc
/mipsel-linux-uclibc
/
46 mv -f ${DESTDIR1}/libexec/gcc/mipsel-linux-uclibc/${GCCVER1} ${DESTDIR2}/libexec
/gcc
/mipsel-linux-uclibc
/
47 mv -f ${DESTDIR1}/info
/cppinternals.info
${DESTDIR2}/info
/
48 mv -f ${DESTDIR1}/info
/gccint.info
${DESTDIR2}/info
/
51 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-linux-gcc-
${GCCVER1}
52 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-uclibc-gcc-
${GCCVER1}
54 #########################################################################
57 rm -f hndtools-mipsel-linux
58 rm -f hndtools-mipsel-uclibc
61 rm -rf K24
/hndtools-mipsel-uclibc-
${GCCVER2}
62 mv -f hndtools-mipsel-uclibc-
${GCCVER2} K24
/
64 ln -nsf K24
/hndtools-mipsel-uclibc-
${GCCVER2} hndtools-mipsel-linux
65 ln -nsf K24
/hndtools-mipsel-uclibc-
${GCCVER2} hndtools-mipsel-uclibc