-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuilder.sh
31 lines (23 loc) · 839 Bytes
/
builder.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
#!/usr/bin/env bash
# Helper function for cloning: gsc = git shallow clone
gsc() {
git clone --depth=1 -q $@
}
# Toolchains directory
mkdir toolchains
# Clone GCC
#gsc https://github.com/cyberknight777/gcc-arm64.git -b master toolchains/gcc64
#gsc https://github.com/mvaisakh/gcc-arm.git -b gcc-master toolchains/gcc32
# Clone CLANG
mkdir toolchains/clang && cd toolchains/clang
bash <(curl -s https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman) -S
cd ../..
# Clone AnyKernel3
gsc https://github.com/Tashar02/AnyKernel3.git AnyKernel3
# Clone Kernel Source
gsc https://github.com/Atom-X-Devs/android_kernel_xiaomi_scarlet.git -b a13/qpnp-haptics Kernel
# Setup Scripts
mv scarlet.sh Kernel/scarlet.sh
cd Kernel
# Compile the kernel using CLANG
bash scarlet.sh --clang --newcam --qpnp --non-dynamic --full-lto