How to configure android kernel?

Hi there!

I’m pretty new to Android but I have a solid background with Linux. I’m used to use make menuconfig, but after having downloaded the android source for nougat, I’m unable to do or at least I didn’t found the correct folder where to do it…

May explain me how to start with kernel configuration?

Thx

Philippe

hi, Philippe:
I guess different SoC vendors with different method for this, at least Rockchip and Amlogic is different :slight_smile:

For Amlogic:

  • The source code directory for linux kernel is common, some other SoC vendors might comes with kernel or linux
  • When you compile Android, will compile kernel at the same time
  • All the kernel output object is direct to out/target/product/kvim/obj/KERNEL_OBJ/

So to configure android kernel, you can run:

$ cd common
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig O=../out/target/product/kvim/obj/KERNEL_OBJ/

Further reading at Build Android.

Enjoy!

1 Like

Thx for the quick response!