spi-ch341-usb
spi-ch341-usb copied to clipboard
Arch linux specific instructions?
Would be very helpful to get some instructions on how to build the driver for Arch linux. The kernel source layout seems to be different:
linux-headers /usr/lib/modules/4.15.5-1-ARCH/
and simply changing the Makefile to point to
KERNEL_DIR = /usr/lib/modules/4.15.5-1-ARCH
results in the error
make -C /usr/lib/modules/4.15.5-1-ARCH M=/home/user/tmp/spi-ch341-usb modules
make[1]: Entering directory '/usr/lib/modules/4.15.5-1-ARCH'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/4.15.5-1-ARCH'
make: *** [Makefile:21: spi-ch341-usb.ko] Error 2
I was able to solve that with setting
KERNEL_DIR = /usr/lib/modules/${KVERSION}/build
perhaps this variable could be set based on /etc/os-release ?
Sorry for the late answer, but I didn't get a notifcation for this issue. Unfortunatly, I don't have Arch Linux available here. May I therefore ask you to change it according to your suggestion and to send a pull request? Thanks.