-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
51 lines (43 loc) · 1.27 KB
/
config.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
#!/bin/bash
# Derectory Default
MRT_DIR="${HOME}/MRT"
# Code Name Of Device
DEVICE_CODENAME="SM-G532G"
# Kernel Source
KERNEL_SOURCE="https://github.com/AnGgIt86/android_kernel_samsung_grandppltedx"
KERNEL_BRANCH="main"
# Directory kernel
KERNEL_DIR="${MRT_DIR}/${DEVICE_CODENAME}"
# Toolchain Directory
TC_SOURCE="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9"
TC_DIR="${MRT_DIR}/PLATFORM/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9"
TC_BRANCH="lineage-19.1"
# CLANG_DIR="${MRT_DIR}/toolchain/linux-x86/clang-r510928"
# GCC_64_DIR="${MRT_DIR}/toolchain/aarch64-linux-android-4.9"
# GCC_32_DIR="${MRT_DIR}/toolchain/arm-linux-androideabi-4.9"
AK3_SOURCE="https://github.com/AnGgIt86/AnyKernel3"
AK3_DIR="${MRT_DIR}/android/AnyKernel3"
# Default config
export PATH="${TC_DIR}/bin:${PATH}"
export KBUILD_BUILD_USER="uwu"
export KBUILD_BUILD_HOST="SM-G532G"
export KBUILD_BUILD_VERSION="1"
SECONDS=0 # builtin bash timer
ZIPNAME="UWU-Kernel-${DEVICE_CODENAME}-$(TZ=Asia/Jakarta date +"%Y%m%d-%H%M").zip"
DEFCONFIG="mt6737t-grandpplte_a64_defconfig"
# green
msg() {
echo -e "\e[1;32m$*\e[0m"
}
# red
msg1() {
echo -e "\e[1;31m$*\e[0m"
}
# yellow
msg2() {
echo -e "\e[1;33m$*\e[0m"
}
# purple
msg3() {
echo -e "\e[1;35m$*\e[0m"
}