LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel source location questions (and symbolic links) for module compile. (https://www.linuxquestions.org/questions/linux-software-2/kernel-source-location-questions-and-symbolic-links-for-module-compile-593420/)

DiBosco 10-21-2007 05:15 AM

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/2.6.22.9-laptop-1mdv/build SUBDIRS=/home/robertw/m560x-driver/m560x/trunk/km_m560x modules
make[1]: Entering directory `/lib/modules/2.6.22.9-laptop-1mdv/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.22.9-laptop-1mdv/build'
make: *** [all] Error 2

I think I need to create a symbolic link to my /usr/src/linux-2.6.22.9-1mdv directory from my /lib/modules/2.6.22.9-laptop-1mdv/build which is empty (but I could be wrong).

If I do this:

ls -s /usr/src/linux-2.6.22.9-1mdv/ /lib/modules/2.6.22.9-laptop-1mdv/build/

I just get this
lib/modules/2.6.22.9-laptop-1mdv/build/:
total 0

/usr/src/linux-2.6.22.9-1mdv/:
total 5560
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?

Many thanks.


All times are GMT -5. The time now is 05:55 PM.