lecotex / vtuner

Automatically exported from code.google.com/p/vtuner
2 stars 2 forks source link

kernel source path config on x86_64 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.fetch module source
2.make: *** /usr/src/2.6.39.4: not found.  exit.
3.little change on makefile solves the problem
from
KDIR ?= /usr/src/`uname -r`
to
KDIR ?= /usr/src/linux-`uname -r`
or 
create symlink from /usr/src/linux to /usr/src/`uname -r`

Original issue reported on code.google.com by gorgone....@gmail.com on 19 Aug 2011 at 3:12

GoogleCodeExporter commented 9 years ago
KDIR is using optional assignment because there is no any 100% way how to 
detect correct kernel source path.

For example in Mandriva 2010.2 I have both variants - most kernels start with 
linux- prefix, but not all!

See:

$ uname -a
Linux blue 2.6.34.7-tmb-laptop-3mdv #1 SMP Tue Dec 14 13:50:47 UTC 2010 i686 
i686 i386 GNU/Linux
$ ll /usr/src/
celkem 32
drwxr-xr-x  3 root root 4096 2009-08-30 00:49 linux-2.6.29.1-desktop-4mnb/
drwxr-xr-x  3 root root 4096 2009-08-30 00:50 linux-2.6.29.6-desktop-1mnb/
drwxr-xr-x  3 root root 4096 2010-04-06 20:09 linux-2.6.29.6-desktop-2mnb/
drwxr-xr-x 22 root root 4096 2010-04-11 23:24 linux-2.6.29.6-desktop-3mnb/
drwxr-xr-x 23 root root 4096 2011-03-17 11:33 linux-2.6.33.4-netbook-devel-1mdv/
drwxr-xr-x 24 root root 4096 2011-03-14 14:56 linux-2.6.33.7-desktop-2mnb/
drwxr-xr-x 23 root root 4096 2011-03-17 12:31 linux-2.6.33.7-netbook-devel-7mdv/
drwxr-xr-x 24 root root 4096 2011-03-17 11:34 2.6.34.7-tmb-laptop-3mdv/

If default KDIR value is incorrect then easiest way is to specify correct 
directory on command line:

$ make KDIR=/usr/src/linux-`uname -r`

/Honza

Original comment by jpetrous on 22 Aug 2011 at 10:58