droelfdroelf / snd-digitakt

ALSA driver for the Elektron Digitakt
42 stars 6 forks source link

set up for being built independently of a kernel build #2

Closed mzero closed 4 years ago

mzero commented 4 years ago

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) The Makefile 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.

mzero commented 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.

droelfdroelf commented 4 years ago

@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