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 rm -rf K24
/hndtools-mipsel-uclibc-
${GCCVER2}
25 ln -sf config
.2.4-${GCCVER1} .config
26 make clean
; make dirclean
; make V
=99
29 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-linux-uclibc-gcc
30 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-linux-gcc-
${GCCVER1}
31 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-uclibc-gcc-
${GCCVER1}
33 #########################################################################
37 ln -sf config
.2.4-${GCCVER2} .config
38 make clean
; make dirclean
; make V
=99
41 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER2} mipsel-linux-uclibc-gcc
42 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER2} mipsel-linux-gcc-
${GCCVER2}
43 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER2} mipsel-uclibc-gcc-
${GCCVER2}
45 #########################################################################
47 mv -f ${DESTDIR1}/bin/mipsel-linux-uclibc-gcc-${GCCVER1} ${DESTDIR2}/bin
/
48 mv -f ${DESTDIR1}/include/c++/${GCCVER1} ${DESTDIR2}/include
/c
++/
49 mv -f ${DESTDIR1}/lib/gcc/mipsel-linux-uclibc/${GCCVER1} ${DESTDIR2}/lib
/gcc
/mipsel-linux-uclibc
/
50 mv -f ${DESTDIR1}/libexec/gcc/mipsel-linux-uclibc/${GCCVER1} ${DESTDIR2}/libexec
/gcc
/mipsel-linux-uclibc
/
51 mv -f ${DESTDIR1}/info
/cppinternals.info
${DESTDIR2}/info
/
52 mv -f ${DESTDIR1}/info
/gccint.info
${DESTDIR2}/info
/
55 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-linux-gcc-
${GCCVER1}
56 ln -nsf mipsel-linux-uclibc-gcc-
${GCCVER1} mipsel-uclibc-gcc-
${GCCVER1}
58 #########################################################################
61 rm -f hndtools-mipsel-linux
62 rm -f hndtools-mipsel-uclibc
65 rm -rf K24
/hndtools-mipsel-uclibc-
${GCCVER2}
66 mv -f hndtools-mipsel-uclibc-
${GCCVER2} K24
/
68 ln -nsf K24
/hndtools-mipsel-uclibc-
${GCCVER2} hndtools-mipsel-linux
69 ln -nsf K24
/hndtools-mipsel-uclibc-
${GCCVER2} hndtools-mipsel-uclibc