Skip to content

Differentiate kernel driver based on TARGET_USE_PANFROST

Currently the kernel is just recompiled with panfrost enabled. Come up with a way to parameterise based on TARGET_USE_PANFROST

possible solutions:

  • use modules (if aosp allows) and add init.rc snippets to load the relevant module
  • include both drivers in the kernel but blacklist the driver we don't want to use via the kernel cmdline
  • is there any problem in keeping both enabled in the kernel? How can we ensure panfrost is selected as the controlling driver based on TARGET_USE_PANFROST?