kernel-sweet-lineage
silent_listenerGuide
- Install prerequisites - build dependencies, and select a cross-compiler. See Kernels - Common stuff.
- Clone the kernel source.
git clone https://github.com/LineageOS/android_kernel_xiaomi_sm6150.git -b lineage-20 ~/kernel/sweet-lineage
- The next step is to compile the kernel. I am going to use proton clang here.
export PATH="$HOME/kernel/toolchain/clang-proton/bin/:$PATH" export ARCH=arm64 make O=out \ CC=clang \ vendor/sdmsteppe-perf_defconfig \ vendor/sweet.config make -j$(nproc) \ O=out \ CC=clang \ CROSS_COMPILE=aarch64-linux-gnu- \ CROSS_COMPILE_ARM32=arm-linux-gnueabi-
- I was able to successfully compile the kernel with proton-clang (and, it booted fine).
- Finally, we can create a flashable zip file with AnyKernel3 easily.
Thanks for reading.