Hi Rob
here we go with my compiling notes. I don't know whether this is the most elegant way, but surely it worked for me.
First you have to install kernel source, headers and kbuild:
apt-get install kernel-source-2.6.13.2-vanilla-pluto-1-686
apt-get install kernel-headers-2.6.13.2-vanilla-pluto-1-686 2.6.13.2
apt-get install kernel-kbuild-2.6-3
cd /usr/src
tar -xjvf kernel-source-2.6.13.2-vanilla-pluto-1-686.tar.bz2
When you are done, do this:
ls -la /lib/modules/2.6.13.2-vanilla-pluto-1-686/
and check where "build" symlink is pointing to. In my box it was pointing to /home/src/linux-2.6.13.2, that is wrong. If this is also your case (and probably it is) correct the symlink and make it pointing to the newly installed kernel source directory:
rm /lib/modules/2.6.13.2-vanilla-pluto-1-686/build
ln -s /usr/src/kernel-source-2.6.13.2-vanilla-pluto-1-686 /lib/modules/2.6.13.2-vanilla-pluto-1-686/build
Then (always from within /usr/src) do the following:
mkdir kernel-kbuild-2.6-4
cp -a kernel-source-2.6.13.2-vanilla-pluto-1-686/scripts kernel-kbuild-2.6-4/
ln -s kernel-source-2.6.13.2-vanilla-pluto-1-686/include/ kernel-kbuild-2.6-4
I don't know if this is strictly needed, but before compiling I made also a "make menuconfig" from within the kernel source dir, just to be sure that a valid .config was there.
Now you are set up and ready to compile your modules.
Go to your pwc source directory and do the following:
KDIR=/usr/src/kernel-headers-2.6.13.2-vanilla-pluto-1-686 make -f Makefile -e
In my case this worked at first shot.
I compiled also another module (ndiswrapper), and in that case the previous command line gave me some compile errors. Issuing a normal "make" did anyway the trick.
So depending on particular Makefile you may have to choose different compiling command.
That's all, folks
I hope that these note may help you.
If not, let me know .. if you feel that it may help I could get pwc source and try to compile it on my box.
Regards
Marco