So, after messing with make-kpkg for too long, I finally managed to build a usable linux-headers package using make deb-pkg target in to the kernel build system. I modified the builddeb script that does most of the work to:
- Add some missing headers files to the package
- Create a /lib/modules/$version/build symbolic link on install
With this I've been able to install a package that uses DKMS to build a driver. The modified code is at https://github.com/raspberrypi/linux
If you'd like to test it, you can download the package from http://repo.anconafamily.com/repos/apt/ ... _armhf.deb
, then install it using dpkg.
Alternatively, you could add my repo to your system then install using aptitude or apt-get:
Code: Select all
sudo wget -O /etc/apt/sources.list.d/jim-raspbian.list http://repo.anconafamily.com/repos/apt/raspbian/jim-raspbian.list
wget -O - http://anconafamily.com/repos/apt/raspbian/jim-raspbian.gpg.key | sudo apt-key add -
sudo aptitude update
sudo aptitude install linux-headers-3.2.27+
If you give it a try, feel free to report any issues you run into here or at Github
. I'd also be interested to hear if you find this useful.