-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildall.sh
executable file
·75 lines (67 loc) · 1.47 KB
/
buildall.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
#!/bin/bash
set -e
V=$1
if [[ "x$V" == "x" ]]; then
echo "Please, specify the kernel version"
echo "and don't forget to create a named tag."
exit 1
fi
export ARCH=arm64
export ANDROID_MAJOR_VERSION=r
export PLATFORM_VERSION=11
sudo umount build || true
git clean -d -x -f
make mrproper
mkdir -p ../out
for t in default cruel
do
./cruelbuild pack \
model=all \
name="Cruel-$V" \
toolchain=$t \
O=build \
+magisk \
+nohardening \
+force_dex_wqhd \
+ttl \
+cifs \
+ntfs \
+sdfat \
+wireguard \
+noaudit \
+noksm \
+nomodules \
+fake_config \
+usb_serial \
+sched_powersave \
+sched_performance \
+morosound \
+boeffla_wl_blocker \
+dtb
mv CruelKernel.zip ../out/CruelKernel-$V-$t.zip
done
./cruelbuild pack \
model=all \
name="Cruel-$V" \
toolchain=cruel \
O=build \
+magisk \
+nohardening \
+force_dex_wqhd \
+ttl \
+cifs \
+ntfs \
+sdfat \
+wireguard \
+noaudit \
+noksm \
+nomodules \
+fake_config \
+usb_serial \
+sched_powersave \
+sched_performance \
+morosound \
+boeffla_wl_blocker \
+dtb \
+50hz
mv CruelKernel.zip ../out/CruelKernel-$V-50hz.zip