douglondev | Hi all - I've been trying to find out the best way to work on a kernel module; I have followed the debian/ubuntu way of kernel compilation and got myself working .deb packages; how would one normally iterate on compiling and testing just one driver module from that point? are there any available docs on that topic? | 17:12 |
---|---|---|
jeremy31 | douglondev: what module? | 17:14 |
douglondev | hid-sony - I'm trying to find out why a dodgy clone ps3 controller isn't working | 17:15 |
jeremy31 | douglondev: For a single module I will enable source code repos in Software & Updates, download the kernel source, apply patches, then cd into the directory with that module source and run this in terminal> make -C /lib/modules/$(uname -r)/build M=$(pwd) modules | 17:16 |
jeremy31 | If it builds without errors, I rename the original module and copy the new one into that spot | 17:17 |
douglondev | thanks, I'll try that once my current fresh build is done | 17:22 |
jeremy31 | I usually do it for wifi and bluetooth drivers | 17:22 |
douglondev | got it, thanks for the hint, working in my debian build dir: src/linux-5.4.0/debian/build/build-generic | 17:39 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!