berarma / new-lg4ff

Experimental Logitech force feedback module for Linux
GNU General Public License v2.0
315 stars 20 forks source link

Fix path to kernel build dir. #14

Closed jotomo closed 4 years ago

jotomo commented 4 years ago

Don't use version of the currently running kernel, but the version the module is build for (when buildung for multiple installed kernels or during kernel upgrades).

@parkerlreed

jotomo commented 4 years ago

Hm, that was too fast. kernelver is provided during dkms build, containing the kernel version the module is build for. However, this change brakes regular invocation of make, where kernelver is not available.

berarma commented 4 years ago

I think the example here can be useful: https://wiki.kubuntu.org/Kernel/Dev/DKMSPackaging

jotomo commented 4 years ago

@berarma Thanks for the link. I think I've got it right now. Tested in both scenarios now. @parkerlreed If you got some time at some point to give this a try, I'd appreciate that.

jotomo commented 4 years ago

Changed and tested. Thanks for your patience! It's been a while since I properly worked with make and the like.

berarma commented 4 years ago

Changed and tested. Thanks for your patience! It's been a while since I properly worked with make and the like.

No worries at all! I'm going one step at a time because I've never used these tools barehanded before. I'm learning some details along the way. Having someone else watching is a relief.

Thanks! That was a good catch and a much needed fix. Merging...