forked from 8devices/openwrt-8devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·42 lines (36 loc) · 823 Bytes
/
build.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
39
40
41
42
#!/bin/bash
help(){
echo "Usage: $0 [board-name]"
echo "valid board names: carambola2 centipede lima rambutan"
exit
}
config=
feeds=
if [[ $# -lt 1 ]]
then
config=config_minimal
else
case $1 in
rambutan)
config=config_rambutan_minimal
;;
carambola2|centipede|lima)
config=config_minimal
if [ -n "$KEFIR" ]; then
config=config_minimal.kefir
feeds=feeds.conf.kefir
fi
;;
help|--help|-h|*)
help
;;
esac
fi
[ -n "$feeds" ] && cp $feeds feeds.conf
echo "Building image using config: '$config'"
./scripts/feeds update -a
./scripts/feeds install -a
cp .config .config_save`date +%F_%T.%N`
cp $config .config
make defconfig
make -j4 IGNORE_ERRORS=m