Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch linux specific instructions? #2

Open
jdevelop opened this issue Mar 1, 2018 · 2 comments
Open

Arch linux specific instructions? #2

jdevelop opened this issue Mar 1, 2018 · 2 comments
Assignees

Comments

@jdevelop
Copy link
Contributor

jdevelop commented Mar 1, 2018

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
Copy link
Contributor Author

jdevelop commented Mar 1, 2018

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 ?

@gschorcht
Copy link
Owner

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 gschorcht self-assigned this Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants