Clone this repo:
  1. d134f76 sync requirements for O, O-MR1 with VTS by Steve Muckle · 2 weeks ago master
  2. dc6efcb update OWNERS file by Steve Muckle · 3 weeks ago
  3. b583c80 android-4.9, android-4.14: Enable KPROBES by Alistair Strachan · 5 weeks ago
  4. 7341763 Enable more options required as dependencies. by Alistair Strachan · 5 weeks ago
  5. 4402395 Enable options required by netd. by Alistair Strachan · 5 weeks ago

Android Kernel Config Fragments

The files in these directories are meant to be used as a base for an Android kernel config. All devices must have the options in android-base.cfg configured as specified. If an android-base-ARCH.cfg file exists for the architecture of your device, the options in that file must be configured as specified also.

While not mandatory, the options in android-recommended.cfg enable advanced Android features.

Assuming you already have a minimalist defconfig for your device, a possible way to enable these options would be to use the script in the kernel tree. From the root of the kernel tree:

     ARCH=<arch> scripts/kconfig/ <...>/<device>_defconfig <...>/android-base.cfg <...>/android-base-<arch>.cfg <...>/android-recommended.cfg

This will generate a .config that can then be used to save a new defconfig or compile a new kernel with Android features enabled.

Because there is no tool to consistently generate these config fragments, lets keep them alphabetically sorted instead of random.