The location of the source tree is controlled via an option argument to dkms. There is no reason to copy the source tree around.
The patch attached to this post has the path names updated to reflect this.
fakeroot alien --to-deb mptlinux-4.22.00.00-1dkms.noarch.rpm sudo dpkg -i mptlinux_4.22.00.00-2_all.deb
cd /usr/src/mptlinux-4.22.00.00 patch -p 0 < ~/mpt-4.22.00.00-2.patch
sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 build -m mptlinux -v 4.22.00.00 sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 install -m mptlinux -v 4.22.00.00 sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 mkdeb -m mptlinux -v 4.22.00.00
The resulting deb is conveniently located in /var/lib/dkms/mptlinux/4.22.00.00/deb/mptlinux-dkms_4.22.00.00_all.deb
That deb contains the patched source code so once you have it it is only necessary to run four commands on systems you want the new driver on:
sudo aptitude install dkms sudo dpkg -i mptlinux_4.22.00.00-2_all.deb sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 build -m mptlinux -v 4.22.00.00 sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 install -m mptlinux -v 4.22.00.00
It is necessary to reboot after running "dkms ... install" in order to load the driver module.
The location of the source tree is controlled via an option argument to dkms. There is no reason to copy the source tree around.
The patch attached to this post has the path names updated to reflect this.
fakeroot alien --to-deb mptlinux- 4.22.00. 00-1dkms. noarch. rpm 4.22.00. 00-2_all. deb
sudo dpkg -i mptlinux_
cd /usr/src/ mptlinux- 4.22.00. 00 22.00.00- 2.patch
patch -p 0 < ~/mpt-4.
sudo dkms --sourcetree /usr/src/ mptlinux- 4.22.00. 00 build -m mptlinux -v 4.22.00.00 mptlinux- 4.22.00. 00 install -m mptlinux -v 4.22.00.00 mptlinux- 4.22.00. 00 mkdeb -m mptlinux -v 4.22.00.00
sudo dkms --sourcetree /usr/src/
sudo dkms --sourcetree /usr/src/
The resulting deb is conveniently located in /var/lib/ dkms/mptlinux/ 4.22.00. 00/deb/ mptlinux- dkms_4. 22.00.00_ all.deb
That deb contains the patched source code so once you have it it is only necessary to run four commands on systems you want the new driver on:
sudo aptitude install dkms 4.22.00. 00-2_all. deb mptlinux- 4.22.00. 00 build -m mptlinux -v 4.22.00.00 mptlinux- 4.22.00. 00 install -m mptlinux -v 4.22.00.00
sudo dpkg -i mptlinux_
sudo dkms --sourcetree /usr/src/
sudo dkms --sourcetree /usr/src/
It is necessary to reboot after running "dkms ... install" in order to load the driver module.