-
Notifications
You must be signed in to change notification settings - Fork 11
/
Setup.sh
executable file
·56 lines (40 loc) · 1.83 KB
/
Setup.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
#!/bin/bash
############################### MISC ###################################
gut() {
gh repo clone $1 $3 -- --depth=1 -b $2
}
############################################################################
######################## Setup Telegram API ################################
if [[ ! $(which telegram-send) ]]; then
pip3 -q install telegram-send
fi
sed -i s/demo1/"${BOT_API_KEY}"/g telegram-send.conf
sed -i s/demo2/"${CHAT_ID}"/g telegram-send.conf
mkdir "$HOME"/.config
mv telegram-send.conf "$HOME"/.config/telegram-send.conf
############################################################################
############################## Setup Toolchains ############################
toolchains_setup() {
if [[ ! -d /usr/$1 ]]; then
exit
else
ln -s /usr/"$1" "$2"
fi
}
mkdir toolchains
toolchains_setup gcc64 toolchains/gcc-arm64 https://github.com/mvaisakh/gcc-arm64 gcc-master
toolchains_setup gcc32 toolchains/gcc-arm https://github.com/mvaisakh/gcc-arm gcc-master
#toolchains_setup clang toolchains/clang https://gitlab.com/dakkshesh07/neutron-clang Neutron-16
############################################################################
############################## Setup AnyKernel #############################
gut Atom-X-Devs/AnyKernel3 main AnyKernel3
############################################################################
############################## Setup Kernel ################################
gut Atom-X-Devs/android_kernel_xiaomi_sm7325 codelinaro Kernel
############################################################################
############################ Setup Scripts #################################
#mv AtomX.sh Kernel/AtomX.sh
#cd Kernel || exit
#bash AtomX.sh --compiler=clang --device=lisa
exit 0
############################################################################