View Single Post
  #2 (permalink)  
Old 04-Jul-2009, 19:07
microchip8's Avatar
microchip8 microchip8 is online now
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,199
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: What is causing "No rule to make target `modules'. Stop

No, kernel sources are always in /usr/src. the stuff in /lib/modules/<kernel>/source and /lib/modules/<kernel>/build is just a symlink to /usr/src/linux source directory, besides the actual modules which are also in /lib/modules. If you have installed the kernel source package, then do as follows which may solve the problem

1) login as root on console
2) cp /boot/config-$(uname -r) /usr/src/linux/.config (note the . (point) in .config)
3) cd /usr/src/linux && make prepare && make modules_prepare

and try compiling your module again
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote