forked from lukasz1992/asuswrt-xiaomi
/
build
26 lines (24 loc) · 752 Bytes
/
build
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
#!/bin/sh
if [ ! -d "brcm" ];then
echo "=================EXTRACT-brcm============================="
cd /opt/asus/tools
tar xjf brcm.tar.bz2
fi
if [ ! -d "buildroot-gcc463" ];then
echo "=================EXTRACT-buildroot-gcc463================="
cd /opt/asus/tools
tar xjf buildroot-gcc463_32bits.tar.bz2
fi
if [ ! -h "/opt/brcm" ];then
sudo ln -s /opt/asus/tools/brcm /opt/brcm
fi
if [ ! -h "/opt/buildroot-gcc463" ];then
sudo ln -s /opt/asus/tools/buildroot-gcc463 /opt/buildroot-gcc463
fi
cd /opt/asus/release/src/router/wget
sudo autoreconf -vfi
cd /opt/asus/release/src-ra-5010
export PATH=/opt/brcm/hndtools-mipsel-linux/bin:$PATH
export PATH=/opt/brcm/hndtools-mipsel-uclibc/bin:$PATH
export PATH=/opt/buildroot-gcc463/bin:$PATH
make RT-E8820S