Kernel source location questions (and symbolic links) for module compile.
I should first say I've managed to compile modules on previous Mandriva installations, but on a new 2008.0 install I have issues. AFAIK I have installed the source.
I'm trying to compile a driver for my integrated webcam and I get an error which I think is something to do the source files (probably links to them). I get this:
make -C /lib/modules/188.8.131.52-laptop-1mdv/build SUBDIRS=/home/robertw/m560x-driver/m560x/trunk/km_m560x modules
make: Entering directory `/lib/modules/184.108.40.206-laptop-1mdv/build'
make: *** No rule to make target `modules'. Stop.
make: Leaving directory `/lib/modules/220.127.116.11-laptop-1mdv/build'
make: *** [all] Error 2
I think I need to create a symbolic link to my /usr/src/linux-18.104.22.168-1mdv directory from my /lib/modules/22.214.171.124-laptop-1mdv/build which is empty (but I could be wrong).
If I do this:
ls -s /usr/src/linux-126.96.36.199-1mdv/ /lib/modules/188.8.131.52-laptop-1mdv/build/
I just get this
4 3rdparty/ 4 drivers/ 12 lib/ 4 REPORTING-BUGS
4 arch/ 12 fs/ 96 MAINTAINERS 4 scripts/
4 block/ 4 include/ 56 Makefile 4 security/
20 COPYING 4 init/ 4 mm/ 4 sound/
96 CREDITS 4 ipc/ 420 Module.symvers 704 System.map
12 crypto/ 4 Kbuild 4 net/ 4 usr/
12 Documentation/ 12 kernel/ 20 README 4028 vmlinux*
Can anyone advise on what the issue is here please? Am I trying to do the right thing and just getting the syntax incorrect?