I am trying to add a device driver for a wifi dongle(specifically rtl8812au) on Ubuntu Core.
Currently I am looking into:
adding the driver to the kernel source, therefore to include it in the kernel snap of the device.
creating a snap that can be added using kernel-module-control plug
I believe compiling the kernel is the most sraight forward way, but will not be able to be modular as the kernel source has to be modified everytime the kernel changes.
I tried looking into the kernel-module-control plug but the documentation of the kernel-module-control plug is pretty much absent.
What would be the best practice for adding a device driver in ubuntu core?
Thank you in advance,