-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathconfig.sh
More file actions
63 lines (53 loc) · 2.14 KB
/
config.sh
File metadata and controls
63 lines (53 loc) · 2.14 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
# shellcheck shell=bash
# shellcheck disable=SC2034
#
# ESK Kernel builder configuration
#
################################################################################
# Project Identity
################################################################################
KERNEL_NAME="ESK"
KERNEL_DEFCONFIG="gki_defconfig"
# Kbuild identity
KBUILD_BUILD_USER="builder"
KBUILD_BUILD_HOST="esk"
# Used for timestamps in logs
TIMEZONE="Asia/Ho_Chi_Minh"
# Where release artifacts are published
RELEASE_REPO="ESK-Project/esk-releases"
RELEASE_BRANCH="main"
################################################################################
# Build options
################################################################################
# Clang LTO mode: thin | full
CLANG_LTO="thin"
# Parallel build jobs (override: JOBS=16 ./build.sh)
JOBS="${JOBS:-$(nproc --all)}"
################################################################################
# Source
################################################################################
# Format: <host>:<owner/repo>@<ref>
KERNEL_REPO="github.com:ESK-Project/android_kernel_xiaomi_mt6895@16.2"
ANYKERNEL_REPO="github.com:ESK-Project/AnyKernel3@android12-5.10"
BUILD_TOOLS_REPO="android.googlesource.com:kernel/prebuilts/build-tools@main-kernel-build-2024"
MKBOOTIMG_REPO="android.googlesource.com:platform/system/tools/mkbootimg@main-kernel-build-2024"
SUSFS_REPO="gitlab.com:simonpunk/susfs4ksu@gki-android12-5.10"
# Other sources
GKI_URL="https://dl.google.com/android/gki/gki-certified-boot-android12-5.10-2025-09_r1.zip"
################################################################################
# Paths
################################################################################
KERNEL="$WORKSPACE/kernel"
ANYKERNEL="$WORKSPACE/anykernel3"
BUILD_TOOLS="$WORKSPACE/build-tools"
MKBOOTIMG="$WORKSPACE/mkbootimg"
CLANG="$WORKSPACE/clang"
CLANG_BIN="$CLANG/bin"
OUT_DIR="$WORKSPACE/out"
BOOT_IMAGE="$WORKSPACE/boot_image"
SIGN_KEY="$WORKSPACE/key"
BOOT_SIGN_KEY="$SIGN_KEY/boot_sign_key.pem"
KERNEL_PATCHES="$WORKSPACE/kernel_patches"
KERNEL_OUT="$KERNEL/out"
SUSFS_DIR="$WORKSPACE/susfs"
LOGFILE="$WORKSPACE/build.log"