r/LineageOS • u/ghostieqwe • 1d ago
Help Trying to figure out Kleaf/Bazel kernel build system
Hi everyone, hope some of you could help me with my problem.
The thing is I don't even have an idea how do I compile Bazel kernels and which logic is the most suitable one for me to feel at least a little bit comfy when trying to figure out kernel build problems, why do I need common kernel tree, why do I need msm kernel tree (btw I'm using OnePlus and their kernel manifest) and the thing isn't just my misunderstanding, it's about searching for at least a little source that tells how and where to begin, I did already like 3 times but all those were unsuccessful, by the way somewhy when I boot the compiled image I boot up in android thrice longer and get no wifi problems.
If anyone here an experienced GKI kernel building master that can gimme over their knowledge just a little bit, please, show me yourself! I would be screaming from happiness and appreciation.
1
u/elginsk8r 1d ago
Common tree is used to compare symbols against an agnostic tree to verify abi integrity with vendor additions. If you are building with lineage a bunch of additional changes are needed and can be found in the respective qcom common kernel (android_kernel_qcom_sm8X50, *-devicetrees, *-modules). It's not a simple task to take on, additional manual changes might be needed to get images and/or modules to build/work properly. I'm not a master, just someone who is observing the build system that I may have to use in the future.