Xiaomi Mi 8 Series Kernel
Based Version:Android Q Version
Kernel Use compiler is GCC,You can choice in this list(Just choose one of them):
When you compile kernel,you need make clean.
make clean
make mrproper
And,Please install dtc tools.
sudo apt-get install device-tree-compiler
Looking for a version for LineageOS 20?
Look here:android_kernel_xiaomi_sdm845_lineageos_Exp