If you want to modify the linux kernel such that it excludes certain modules, you usually go to /kernel/msm-4.9/arch/arm/configs/vendor/_defconfig<
/kernel/msm-4.9/arch/arm/configs/vendor/_defconfig<