Best way to build a kernel with support for a specific piece of hardware

Could do something like this