-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
67 lines (57 loc) · 1.27 KB
/
setup.sh
File metadata and controls
67 lines (57 loc) · 1.27 KB
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
#!/bin/bash
#
# by @whyakari ©2024
#
# install packages
packages() {
sudo apt install flex bc ccache neovim -y
}
# configure clang
clang() {
git clone https://github.com/moekernel/clang
cd clang
chmod +x clang.sh
./clang.sh
cd ../
rm -rf clang
}
# configure gcc setup.
gcc_() {
GCC_64_DIR="$HOME/tc/aarch64-linux-android-15.0"
GCC_32_DIR="$HOME/tc/arm-linux-androideabi-15.0"
if ! [ -d "${GCC_64_DIR}" ]; then
echo "gcc not found! Cloning to ${GCC_64_DIR}..."
if ! git clone --depth=1 -b 15 https://github.com/whyakari/aarch64-zyc-linux-gnu ${GCC_64_DIR}; then
echo "Cloning failed! Aborting..."
exit 1
fi
fi
if ! [ -d "${GCC_32_DIR}" ]; then
echo "gcc_32 not found! Cloning to ${GCC_32_DIR}..."
if ! git clone --depth=1 -b 15 https://github.com/whyakari/arm-zyc-linux-gnueabi ${GCC_32_DIR}; then
echo "Cloning failed! Aborting..."
exit 1
fi
fi
}
# get kernelsu from @whyakari
kernelsu() {
wget https://raw.githubusercontent.com/MoeKernel/scripts/ksu/ksu_update.sh
chmod +x ksu_update.sh
./ksu_update.sh -t stable
}
# configure kernel for compile.
kernel() {
make mrproper
}
# get script build kernel.
moe() {
wget https://raw.githubusercontent.com/MoeKernel/scripts/ksu/moe.sh
chmod +x moe.sh
}
packages
clang
gcc_
kernelsu
kernel
moe