-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-linkit.sh
38 lines (24 loc) · 973 Bytes
/
build-linkit.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
34
35
36
37
38
#!/bin/bash
cd ~/src/routers/ChaosCalmer/openwrt
#make distclean
#ln -sf ../dl
if [ -e .config ] ; then rm .config fi
git pull
if [ ! -e feeds.conf ] ; then
sed 's/^\(src-git telephony.*\)/#\1/g' feeds.conf.default >feeds.conf
elif [ `grep telephony feeds.conf` ]
sed 's/^\(src-git telephony.*\)/#\1/g' feeds.conf >/tmp/feeds.conf
cp /tmp/feeds.conf .
fi
if [ `grep -q 7688 feeds.conf` ] ; then
echo src-git linkit https://github.com/MediaTek-Labs/linkit-smart-7688-feed.git >> feeds.conf
fi
./scripts/feeds update -a
./scripts/feeds install -d m -a
# make config-clean
cat ../config.linkit >>.config
make defconfig
#make menuconfig
make V=s prereq && make V=s download && make V=s tools/install && make V=s toolchain/install && make IGNORE_ERRORS=1 V=s CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 | tee build.log
#make IGNORE_ERRORS=1 kernel_oldconfig
#make IGNORE_ERRORS=1 V=s CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 | tee build.log