airbus-seclab / usbq_core

USB man in the middle linux kernel driver
19 stars 7 forks source link

Make module build against newer kernels, and make it able to be compiled directly on arm devices #5

Closed soccermitchy closed 3 years ago

soccermitchy commented 3 years ago

I added #if statements to check against kernel version in a few places, because certain functions had arguments removed in newer kernel versions. Also, I made CROSS_COMPILE in the makefile default to empty and made the KERNELDIR variable default to /lib/modules/KERNEL VERSION/build to make it so you can build with just make provided you have the correct linux headers package installed.

soccermitchy commented 3 years ago

Also just added DKMS support, so you can now just:

git clone [url] /usr/src/usbq_core-1.0
sudo dkms add -m usbq_core -v 1.0
sudo dkms build -m usbq_core -v 1.0
sudo dkms install -m usbq_core -v 1.0