Dynamic Kernel Module Support (DKMS) builds Linux kernel modules whose sources reside outside the kernel source tree. It automates rebuilding of such modules when a new kernel is installed.
git clone -b release/tn40xx-002 https://github.com/acooks/tn40xx-driver.git /usr/src/tn40xx-002
dkms add -m tn40xx -v 002
dkms install -m tn40xx -v 002
dkms install -m tn40xx -v 002 -k [kernel_version]
This will remove module for all kernel versions
dkms remove -m tn40xx -v 002 --all