Here's another tip download the same kernel version that you want to build. Download it from Android and copy the makefiles over. Then you get LTO for specific objects and the vmlinux.o
I build as much as I can with LLVM and I have been under surveillance and some stuff doesn't compile although it should there is so much more I can release but someone is keeping a lid on it.