spi-ch341-usb icon indicating copy to clipboard operation
spi-ch341-usb copied to clipboard

Arch linux specific instructions?

Open jdevelop opened this issue 7 years ago • 2 comments

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

jdevelop avatar Mar 01 '18 02:03 jdevelop

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 ?

jdevelop avatar Mar 01 '18 11:03 jdevelop

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.

gschorcht avatar Apr 19 '18 07:04 gschorcht