forked from RMerl/asuswrt-merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build26.sh
executable file
·33 lines (24 loc) · 989 Bytes
/
build26.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#########################################################################
# Toolchain Build Script #
#########################################################################
GCCVER=4.2.4
ROOTDIR=$PWD
TARGETDIR=hndtools-mipsel-uclibc-${GCCVER}
DESTDIR=/opt/brcm/${TARGETDIR}
make -C ../release/src-rt prepk
rm -f .config
ln -sf config.2.6-${GCCVER} .config
make clean; make dirclean; make V=99
cd $DESTDIR/bin
ln -nsf mipsel-linux-uclibc-gcc-${GCCVER} mipsel-linux-uclibc-gcc
ln -nsf mipsel-linux-uclibc-gcc-${GCCVER} mipsel-linux-gcc-${GCCVER}
ln -nsf mipsel-linux-uclibc-gcc-${GCCVER} mipsel-uclibc-gcc-${GCCVER}
cd /opt/brcm
rm -f hndtools-mipsel-linux
rm -f hndtools-mipsel-uclibc
mkdir -p K26
rm -rf K26/hndtools-mipsel-uclibc-${GCCVER}
mv -f hndtools-mipsel-uclibc-${GCCVER} K26/
ln -nsf K26/hndtools-mipsel-uclibc-${GCCVER} hndtools-mipsel-linux
ln -nsf K26/hndtools-mipsel-uclibc-${GCCVER} hndtools-mipsel-uclibc
cd $ROOTDIR