-
Notifications
You must be signed in to change notification settings - Fork 58
/
build_kernel.sh
executable file
·213 lines (209 loc) · 6.39 KB
/
build_kernel.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
#!/bin/bash
COUT="~/WORKING_DIRECTORY/COMPILED_OUT"
KERNELDIR=`readlink -f .`
if [ -f ~/WORKING_DIRECTORY/AGNi_stamp.sh ]; then
. ~/WORKING_DIRECTORY/AGNi_stamp.sh
fi
chmod +x $KERNELDIR/AGNi_version.sh
chmod +x $KERNELDIR/cleanconfig.sh
chmod +x $KERNELDIR/cleanbuild.sh
chmod +x $KERNELDIR/menuconfig.sh
chmod +x $KERNELDIR/scripts/agni/*
HORIZONTALLINE="-----------------------------------------------------------------------"
clear
echo "$HORIZONTALLINE"
echo " "
echo " AGNi kernel by psndna88 !!!"
echo $HORIZONTALLINE
echo " 1: Build All Devices"
echo " 2: Build whyred - Redmi Note 5 Pro"
echo " 3: Build tulip - Redmi Note 6 Pro"
echo " 4: Build lavender - Redmi Note 7"
echo " 5: Build wayne - MI 6X"
echo " 6: Build jasmine - MI A2"
echo " "
echo " 7: Build whyred ROG MIUI-Q - Redmi Note 5 Pro"
echo " 8: Build whyred ROG MIUI-R - Redmi Note 5 Pro"
echo " 9: Build whyred Hellas MIUI-Q - Redmi Note 5 Pro"
echo " 10: Build whyred Hellas MIUI-R - Redmi Note 5 Pro"
echo " 11: Build jasmine VIPsprout MIUI-Q - MI A2"
echo " "
echo " 0: X Exit Compilation X"
echo " "
echo "$HORIZONTALLINE"
read -p " Select what to build : " choice
if [ $choice -eq 1 ]; then
#### ALL Devices
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi whyred variant..."
./scripts/agni/build_kernel_whyred.sh
echo " "
echo " BATCH MODE: Built AGNi whyred variant!!!"
echo $HORIZONTALLINE
echo " "
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi whyred ROG Q variant..."
./scripts/agni/build_kernel_whyred_ROG-Q.sh
echo " "
echo " BATCH MODE: Built AGNi whyred ROG Q variant!!!"
echo $HORIZONTALLINE
echo " "
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi whyred ROG R variant..."
./scripts/agni/build_kernel_whyred_ROG-R.sh
echo " "
echo " BATCH MODE: Built AGNi whyred ROG R variant!!!"
echo $HORIZONTALLINE
echo " "
echo " "
echo " BATCH MODE: Building AGNi whyred Hellas Q variant..."
./scripts/agni/build_kernel_whyred_hellas-Q.sh
echo " "
echo " BATCH MODE: Built AGNi whyred Hellas Q variant!!!"
echo $HORIZONTALLINE
echo " "
echo " "
echo " BATCH MODE: Building AGNi whyred Hellas R variant..."
./scripts/agni/build_kernel_whyred_hellas-R.sh
echo " "
echo " BATCH MODE: Built AGNi whyred Hellas R variant!!!"
echo $HORIZONTALLINE
echo " "
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi tulip variant..."
./scripts/agni/build_kernel_tulip.sh
echo " "
echo " BATCH MODE: Built AGNi tulip variant!!!"
echo $HORIZONTALLINE
echo " "
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi lavender variant..."
./scripts/agni/build_kernel_lavender.sh
echo " "
echo " BATCH MODE: Built AGNi lavender variant!!!"
echo $HORIZONTALLINE
echo " "
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi wayne variant..."
./scripts/agni/build_kernel_wayne.sh
echo " "
echo " BATCH MODE: Built AGNi wayne variant!!!"
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi jasmine variant..."
./scripts/agni/build_kernel_jasmine.sh
echo " "
echo " BATCH MODE: Built AGNi jasmine variant!!!"
echo $HORIZONTALLINE
echo " "
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi jasmine VIPsprout variant..."
./scripts/agni/build_kernel_jasmine_VIPsprout.sh
echo " "
echo " BATCH MODE: Built AGNi jasmine VIPsprout variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 2 ]; then
#### WHYRED
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi whyred variant..."
./scripts/agni/build_kernel_whyred.sh
echo " "
echo " BATCH MODE: Built AGNi whyred variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 3 ]; then
#### TULIP
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi tulip variant..."
./scripts/agni/build_kernel_tulip.sh
echo " "
echo " BATCH MODE: Built AGNi tulip variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 4 ]; then
#### LAVENDER
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi lavender variant..."
./scripts/agni/build_kernel_lavender.sh
echo " "
echo " BATCH MODE: Built AGNi lavender variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 5 ]; then
#### WAYNE
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi wayne variant..."
./scripts/agni/build_kernel_wayne.sh
echo " "
echo " BATCH MODE: Built AGNi wayne variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 6 ]; then
#### JASMINE
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi jasmine variant..."
./scripts/agni/build_kernel_jasmine.sh
echo " "
echo " BATCH MODE: Built AGNi jasmine variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 7 ]; then
#### whyred ROG Q
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi whyred ROG Q variant..."
./scripts/agni/build_kernel_whyred_ROG-Q.sh
echo " "
echo " BATCH MODE: Built AGNi whyred ROG Q variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 8 ]; then
#### whyred ROG R
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi whyred ROG R variant..."
./scripts/agni/build_kernel_whyred_ROG-R.sh
echo " "
echo " BATCH MODE: Built AGNi whyred ROG R variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 9 ]; then
#### whyred Hellas Q
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi whyred Hellas Q variant..."
./scripts/agni/build_kernel_whyred_hellas-Q.sh
echo " "
echo " BATCH MODE: Built AGNi whyred Hellas Q variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 10 ]; then
#### whyred Hellas R
echo $HORIZONTALLINE
echo " "
echo " BATCH MODE: Building AGNi whyred Hellas R variant..."
./scripts/agni/build_kernel_whyred_hellas-R.sh
echo " "
echo " BATCH MODE: Built AGNi whyred Hellas R variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 11 ]; then
#### jasmine VIPsprout Q
echo " "
echo $HORIZONTALLINE
echo " BATCH MODE: Building AGNi jasmine VIPsprout Q variant..."
./scripts/agni/build_kernel_jasmine_VIPsprout.sh
echo " "
echo " BATCH MODE: Built AGNi jasmine VIPsprout Q variant!!!"
echo $HORIZONTALLINE
echo " "
elif [ $choice -eq 0 ]; then
exit
else
echo " "
echo -e "====> Enter corrent input <===="
fi