-
Notifications
You must be signed in to change notification settings - Fork 35
/
autobuild.sh
executable file
·62 lines (49 loc) · 1.09 KB
/
autobuild.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
54
55
56
57
58
59
60
61
62
#!/bin/bash
#
BUILD_MODULE=$1
TOP_DIR=$(cd "$(dirname "$0")"; pwd)
if [ "$BUILD_MODULE" = "config" ]; then
cd $TOP_DIR/owl
./config.sh
exit
elif [ ! -f "$TOP_DIR/owl/.config" ]; then
cd $TOP_DIR/owl
./config.sh
fi
if [ "$BUILD_MODULE" = "kernel" ]; then
cd $TOP_DIR/owl
make kernel
elif [ "$BUILD_MODULE" = "modules" ]; then
cd $TOP_DIR/owl
make modules
elif [ "$BUILD_MODULE" = "u-boot" ]; then
cd $TOP_DIR/owl
make u-boot
elif [ "$BUILD_MODULE" = "rootfs" ]; then
cd $TOP_DIR/owl
make rootfs
elif [ "$BUILD_MODULE" = "sd_boot" ]; then
cd $TOP_DIR/owl
make sd_boot
elif [ "$BUILD_MODULE" = "user" ]; then
cd $TOP_DIR/owl
#cp config-user.sh config-mode.sh
cat config-user.sh >> config-mode.sh
./config-mode.sh
exit
elif [ "$BUILD_MODULE" = "userdebug" ]; then
cd $TOP_DIR/owl
#cp config-userdebug.sh config-mode.sh
cat config-userdebug.sh >> config-mode.sh
./config-mode.sh
exit
elif [ "$BUILD_MODULE" = "eng" ]; then
cd $TOP_DIR/owl
#cp config-eng.sh config-mode.sh
cat config-eng.sh >> config-mode.sh
./config-mode.sh
exit
else
cd $TOP_DIR/owl
make
fi