I managed to compile the modules using the linux headers and linux-source packages. I had to modify the makefile.
$ apt-get install linux-headers-`uname -r`-generic linux-source-3.0.0 $ cd /usr/src/linux-source-3.0.0 $ tar -xjf linux-source-3.0.0.tar.bz2 $ cd /usr/src/linux-source-3.0.0/linux-source-3.0.0/drivers/staging/usbip
Add the following line to the beginning of the Makefile: obj-m := usbip-core.o vhci-hcd.o usbip-host.o
$ make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules $ make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules_install $ depmod -a
I managed to compile the modules using the linux headers and linux-source packages. I had to modify the makefile.
$ apt-get install linux-headers- `uname -r`-generic linux-source-3.0.0 linux-source- 3.0.0 3.0.0.tar. bz2 linux-source- 3.0.0/linux- source- 3.0.0/drivers/ staging/ usbip
$ cd /usr/src/
$ tar -xjf linux-source-
$ cd /usr/src/
Add the following line to the beginning of the Makefile:
obj-m := usbip-core.o vhci-hcd.o usbip-host.o
$ make -C /usr/src/ linux-headers- `uname -r` M=`pwd` modules linux-headers- `uname -r` M=`pwd` modules_install
$ make -C /usr/src/
$ depmod -a