-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sh
executable file
·53 lines (40 loc) · 1.86 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
: ${MODEL:=x86-64}
: ${KMODS_IN_FIRMWARE:=false}
: ${VERSION:=docker}
export MODEL
export VERSION
export KMODS_IN_FIRMWARE
arr=("r4s" "r4se" "r5c" "x86-64")
if echo ${arr[@]} | grep -q "$MODEL"; then
echo "Start compiling for the device: $MODEL"
else
exit 0
fi
chmod +x build/scripts/*.sh
echo "[---------------------------------------------01_source_code---------------------------------------------]"
source ./build/scripts/01_source_code.sh
echo "[---------------------------------------------02_feeds_setting---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/02_feeds_setting.sh
echo "[---------------------------------------------03_feeds_update---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/03_feeds_update.sh
echo "[---------------------------------------------04_community_package---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/04_community_package.sh
echo "[---------------------------------------------05_target_setting---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/05_target_setting.sh
echo "[---------------------------------------------06_download_dl---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/06_download_dl.sh
echo "[---------------------------------------------07_compile_toolchain---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/07_compile_toolchain.sh
echo "[---------------------------------------------08_compile_package---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/08_compile_package.sh
echo "[---------------------------------------------09_generate_firmware---------------------------------------------]"
cd $OPENWRTROOT
source ../build/scripts/09_generate_firmware.sh