How to add driver to Android 12 kernel before compiling source code

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official Android 12

Please describe your issue below:

I welcome everyone!
Please tell me how I can configure the Android 12 kernel. I want to add the driver that is in the Android 12 sources before compiling the source code. But I can’t figure out how to specify support for the necessary modules in the kernel config.
I found in Google that there is a make menuconfig command
But how to use it please help

Hello @denbon

@goenjoy will help you then.

@denbon The simplest method is to directly modify this file: kernel-5.10/arch/arm64/configs/kedge2_defconfig