Closed mzero closed 4 years ago
hrm... on reflection, this is probably rather too specific to the RaspberryPi than it should be.... Let me see if I can generalize it on another machine.
@mzero I did something similar for the pi-gen fork, using dkms to trigger a rebuild every time the kernel gets updated: https://github.com/droelfdroelf/pi-gen/tree/master/stage1/04-dkms
This CL lets users build the module in place without having to manually pull a kernel tree and merge the files into that tree.
1) The two required .h files are now fetched from the kernel sources matching the installed kernel headers.
digitakt.c
is altered to use these files. 2) TheMakefile
handles building the module in-place.Future issues: This code probably isn't graceful if the user doesn't have the right kernel headers installed.