-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathconfig.env
More file actions
160 lines (132 loc) · 6 KB
/
Copy pathconfig.env
File metadata and controls
160 lines (132 loc) · 6 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# KernelSU Action -- build profile
#
# Values here are defaults; workflow_dispatch inputs override them per run.
# Only the exact string "true" (or yes/on/1) counts as enabled.
#
# Copy this file to config/<device>.env to keep one profile per device, then
# pick it with the "Config file to build" input when you start a build.
CONFIG_ENV=config.env
# ============================================================ Kernel source ==
KERNEL_SOURCE=https://github.com/xiaoleGun/android_kernel_xiaomi_wayne-4.19
KERNEL_SOURCE_BRANCH=twrp-12
KERNEL_CONFIG=vendor/wayne_defconfig
KERNEL_IMAGE_NAME=Image.gz-dtb
ARCH=arm64
# Optional: overrides the device label used in artifact names and sets
# CONFIG_LOCALVERSION. Leave blank to derive it from KERNEL_CONFIG.
KERNEL_NAME=
ADD_LOCALVERSION_TO_FILENAME=false
# Extra flags appended to every make invocation. Values may contain "=".
# This 4.19 tree still has K&R-style empty parameter lists in vendor drivers.
# Keep the diagnostic visible, but do not make it fatal under modern Clang.
EXTRA_CMDS:LD=ld.lld KCFLAGS=-Wno-error=strict-prototypes
CUSTOM_CMDS:CLANG_TRIPLE=aarch64-linux-gnu-
# =================================================================== Clang ==
#
# AOSP publishes prebuilt clang per "kernel-build" branch, but each branch only
# actually contains one or two toolchains -- the other version directories are
# empty placeholders that still download as a valid (empty) archive. Verified
# working pairs as of 2026-07:
#
# CLANG_BRANCH=main-kernel CLANG_VERSION=r596125 (newest)
# CLANG_BRANCH=main-kernel-2026 CLANG_VERSION=r584948c
# CLANG_BRANCH=main-kernel-2025 CLANG_VERSION=r547379
# CLANG_BRANCH=main-kernel-build-2024 CLANG_VERSION=r510928
# CLANG_BRANCH=master-kernel-build-2022 CLANG_VERSION=r450784e
#
# Newer clang frequently fails on 4.x trees (dropped flags, stricter warnings).
# r450784e is the safe choice for 4.9-4.19; use r547379 or newer for 5.10+.
CLANG_BRANCH=master-kernel-build-2022
CLANG_VERSION=r450784e
USE_CUSTOM_CLANG=false
CUSTOM_CLANG_SOURCE=
CUSTOM_CLANG_BRANCH=
# Build fully with LLVM (LLVM=1 LLVM_IAS=1). Good for 5.10+, usually breaks 4.x.
USE_LLVM=false
# ===================================================================== GCC ==
#
# Only needed as binutils for older trees that cannot use LLVM's integrated
# assembler. Leave both off when USE_LLVM=true.
ENABLE_GCC_ARM64=true
ENABLE_GCC_ARM32=true
USE_CUSTOM_GCC_64=false
CUSTOM_GCC_64_SOURCE=
CUSTOM_GCC_64_BRANCH=
CUSTOM_GCC_64_BIN=aarch64-linux-android-
USE_CUSTOM_GCC_32=false
CUSTOM_GCC_32_SOURCE=
CUSTOM_GCC_32_BRANCH=
CUSTOM_GCC_32_BIN=arm-linux-androideabi-
# =============================================================== KernelSU ===
#
# KSU_VARIANT picks which fork to integrate:
#
# none no root solution, plain kernel build
# kernelsu tiann/KernelSU, the original. Dropped non-GKI support at
# v1.0, so kernels older than 5.10 are pinned to v0.9.5.
# kernelsu-next KernelSU-Next. Branches: dev (default), stable, legacy.
# Legacy kernels need KSU_REF=legacy.
# sukisu-ultra SukiSU-Ultra. main = modular v4 tree with KPM support;
# builtin = source-integrated tree, and the only ref that
# ships SUSFS itself.
# resukisu ReSukiSU, a re-fork of SukiSU-Ultra focused on legacy and
# non-GKI kernels, with multi-manager support.
# rsuntk rsuntk/KernelSU (RKSU).
# backslashxx backslashxx/KernelSU, manual-hook oriented.
#
# KSU_REF is a branch, tag or commit. Leave blank to let the action pick a
# sensible ref for your kernel version. It is validated before use: an
# unknown ref fails the build rather than silently falling back, which is
# what the upstream setup.sh scripts do on their own.
KSU_VARIANT=resukisu
KSU_REF=
# auto | kprobes | manual | tracepoint | syscall | none
# "auto" uses kprobes on 5.10+ and manual hooks on older kernels, where
# kprobes is the usual reason KernelSU installs but su does nothing.
KSU_HOOK_MODE=auto
# Custom manager APK signature. Leave blank for the official manager.
# Get these with: ksud debug get-sign <apk_path>
KSU_EXPECTED_SIZE=
KSU_EXPECTED_HASH=
# =================================================================== SUSFS ==
#
# SUSFS hides mounts, paths and kstat from root detection. The branch is
# derived from your kernel version when left as "auto".
#
# Caveat: susfs4ksu's non-GKI branches (kernel-4.9/4.14/4.19/5.4) have not been
# updated since early 2025 and still target KernelSU's old flat source layout.
# Forks that have since restructured may fail to apply the KernelSU-side patch.
# KSU_VARIANT=sukisu-ultra with KSU_REF=builtin avoids that, because it ships
# SUSFS support itself.
ENABLE_SUSFS=false
SUSFS_REPO=https://gitlab.com/simonpunk/susfs4ksu.git
SUSFS_BRANCH=auto
# ========================================================== Extra patches ===
# path_umount() arrived in Linux 5.9. KernelSU uses it to unmount its own
# overlays before a root check runs, so older kernels need it backported.
# Ignored (with a message) on 5.9+.
ENABLE_PATH_UMOUNT=false
# Extra fingerprint removal on top of SUSFS.
ENABLE_HIDE_STUFF=false
# SukiSU-Ultra's Kernel Patch Module support. arm64 only.
ENABLE_KPM=false
# ================================================================ Kconfig ===
ADD_KPROBES_CONFIG=false
ADD_OVERLAYFS_CONFIG=true
DISABLE_LTO=false
DISABLE_CC_WERROR=false
# Free-form defconfig lines, space or newline separated.
EXTRA_DEFCONFIG=
# ============================================================= AnyKernel3 ===
USE_CUSTOM_ANYKERNEL3=false
CUSTOM_ANYKERNEL3_SOURCE=
CUSTOM_ANYKERNEL3_BRANCH=
# ============================================================== Packaging ===
NEED_DTBO=false
# Repack a boot.img around the new kernel. SOURCE_BOOT_IMAGE must be a direct
# link to a bootable image for the same device and ROM.
BUILD_BOOT_IMG=false
SOURCE_BOOT_IMAGE=
# ================================================================= Runner ===
ENABLE_CCACHE=true
REMOVE_UNUSED_PACKAGES=true