1- # Kernel source
2- KERNEL_SOURCE = " https://github.com/MrShockWAVEE/Proton_kernel_Xioami_mt6768"
3- KERNEL_SOURCE_BRANCH = " ShockWAVE-Tree-WIP"
4- KERNEL_CONFIG = " lancelot_defconfig"
5- KERNEL_IMAGE_NAME = " Image.gz-dtb"
6- KERNEL_ARCH = " arm64"
7-
8- # Optional: kernel boot image source (if needed for patching)
9- SOURCE_BOOT_IMAGE = " https://raw.githubusercontent.com/xiaoleGun/KernelSU_action/main/boot/boot.img"
10-
11- # Toolchain (Clang/GCC) options
12- USE_CUSTOM_CLANG = " true"
13- CUSTOM_CLANG_SOURCE = " https://github.com/ZyCromerZ/Clang/releases/download/21.0.0git-20250425-release/Clang-21.0.0git-20250425.tar.gz"
14-
15- USE_CUSTOM_GCC = " false"
16- USE_CUSTOM_GCC_64 = " true"
17- CUSTOM_GCC_64_SOURCE = " https://snapshots.linaro.org/gnu-toolchain/14.0-2023.06-1/aarch64-linux-gnu/gcc-linaro-14.0.0-2023.06-x86_64_aarch64-linux-gnu.tar.xz"
18-
19- USE_CUSTOM_GCC_32 = " true"
20- CUSTOM_GCC_32_SOURCE = " https://snapshots.linaro.org/gnu-toolchain/14.0-2023.06-1/arm-linux-gnueabihf/gcc-linaro-14.0.0-2023.06-x86_64_arm-linux-gnueabihf.tar.xz"
21-
22- # Optional: AOSP prebuilt fallback Clang
23- CLANG_BRANCH = " master-kernel-build-2022"
24- CLANG_VERSION = " r450784e"
25- ENABLE_GCC_AOSP = " false"
26- ENABLE_GCC_ARM64 = " true"
27- ENABLE_GCC_ARM32 = " true"
28-
29- # AnyKernel3 packaging
30- USE_CUSTOM_ANYKERNEL3 = " true"
31- CUSTOM_ANYKERNEL3_SOURCE = " https://github.com/Edhic1/AnyKernel3.git"
32- CUSTOM_ANYKERNEL3_BRANCH = " master"
33-
34- # Optional: build DTBO or boot.img
35- BUILD_BOOT_IMG = " false"
36- NEED_DTBO = " false"
37-
38- # Flags and compiler options
39- REMOVE_UNUSED_PACKAGES = " false"
40- ENABLE_CCACHE = " false"
41- DISABLE_LTO = " false"
42- DISABLE_CC_WERROR = " false"
43- FIX_WIFI_SPEED = " false"
44-
45- # Extra make flags (quoted)
46- EXTRA_CMDS = ' LLVM=1 LLVM_IAS=1 LD=ld.lld AS=llvm-as AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump READELF=llvm-readelf STRIP=llvm-strip CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnueabi- CROSS_COMPILE_COMPAT=arm-linux-gnueabi- CONFIG_NO_ERROR_ON_MISMATCH=y TARGET_BUILD_VARIANT=user'
1+ CONFIG_ENV = config.env
2+
3+ # Kernel info
4+ KERNEL_SOURCE = https://github.com/MrShockWAVEE/Proton_kernel_Xioami_mt6768
5+ KERNEL_SOURCE_BRANCH = ShockWAVE-Tree-WIP
6+ KERNEL_CONFIG = lancelot_defconfig
7+ KERNEL_IMAGE_NAME = Image.gz-dtb
8+ KERNEL_ARCH = arm64
9+
10+ # Kernel configuration
11+ ENABLE_KERNELSU = true
12+ KERNELSU_TAG =
13+ KSU_EXPECTED_SIZE =
14+ KSU_EXPECTED_HASH =
15+ KSU_REVERT = false
16+ ADD_KPROBES_CONFIG = false
17+ KSU_HOOKS_PATCH = false
18+ ADD_OVERLAYFS_CONFIG = true
19+ ADD_APATCH_SUPPORT = false
20+ FIX_APATCH_OPENELA = false
21+ OLD_ANDROID_SUPPORT = true
22+
23+ # Custom compiler
24+ USE_CUSTOM_CLANG = true
25+ CUSTOM_CLANG_SOURCE = https://github.com/ZyCromerZ/Clang/releases/download/21.0.0git-20250425-release/Clang-21.0.0git-20250425.tar.gz
26+ CUSTOM_CLANG_BRANCH =
27+ USE_CUSTOM_GCC = false
28+ USE_CUSTOM_GCC_64 = true
29+ CUSTOM_GCC_64_SOURCE = https://snapshots.linaro.org/gnu-toolchain/14.0-2023.06-1/aarch64-linux-gnu/gcc-linaro-14.0.0-2023.06-x86_64_aarch64-linux-gnu.tar.xz
30+ CUSTOM_GCC_64_BRANCH =
31+ CUSTOM_GCC_64_BIN = aarch64-linux-gnu
32+ USE_CUSTOM_GCC_32 = true
33+ CUSTOM_GCC_32_SOURCE = https://snapshots.linaro.org/gnu-toolchain/14.0-2023.06-1/arm-linux-gnueabihf/gcc-linaro-14.0.0-2023.06-x86_64_arm-linux-gnueabihf.tar.xz
34+ CUSTOM_GCC_32_BRANCH =
35+ CUSTOM_GCC_32_BIN = arm-linux-gnueabihf
36+
37+ # Standart compilers
38+ CLANG_BRANCH = master-kernel-build-2022
39+ CLANG_VERSION = r450784e
40+ ENABLE_GCC_AOSP = false
41+ ENABLE_GCC_ARM64 = true
42+ ENABLE_GCC_ARM32 = true
43+
44+ # Extra compiler options
45+ EXTRA_CMDS = LLVM=1 LLVM_IAS=1 LD=ld.lld AS=llvm-as AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump READELF=llvm-readelf STRIP=llvm-strip CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnueabihf- CROSS_COMPILE_COMPAT=arm-linux-gnueabihf- CONFIG_NO_ERROR_ON_MISMATCH=y TARGET_BUILD_VARIANT=user
46+
47+ # Custom AnyKernel3
48+ USE_CUSTOM_ANYKERNEL3 = true
49+ CUSTOM_ANYKERNEL3_SOURCE = https://github.com/Edhic1/AnyKernel3.git
50+ CUSTOM_ANYKERNEL3_BRANCH = master
51+
52+ # DTBO image
53+ NEED_DTBO = false
54+
55+ # Build boot images
56+ BUILD_BOOT_IMG = false
57+ SOURCE_BOOT_IMAGE = https://raw.githubusercontent.com/xiaoleGun/KernelSU_action/main/boot/boot.img
58+
59+ # In case of problems
60+ DISABLE_LTO = false
61+ DISABLE_CC_WERROR = false
62+ FIX_WIFI_SPEED = false
63+
64+ # Miscellaneous
65+ REMOVE_UNUSED_PACKAGES = false
66+ ENABLE_CCACHE = false
67+ ADD_LOCALVERSION_TO_FILENAME = false
0 commit comments