New comment by Johnnynator on void-packages repository https://github.com/void-linux/void-packages/issues/15901#issuecomment-547648188 Comment: At least with their meson build system you can set `-Denable_kmods=off` and just copy `kernel/linux/{igb_uio,kni}` to `/usr/src/${module-name}-${version}` and add a dkms.conf. E.g. the `rtl8822bu-dkms` package demonstrates on how to create a dkms pacakge out of a non dkms kernel module. Also I think you need to make a subpackage per dkms module, it won't work otherwise afaik.