You are not logged in.

#1 2010-02-11 12:35:07

Ber
Member
From: Belgium
Registered: 2006-07-05
Posts: 80
Website

/lib/modules/`uname -r`/build symlink missing [SOLVED]

Hi,

I'm trying to compile a home-made kernel module, and the Makefile relies on the /lib/modules/`uname -r`/build symlink to get the kernel headers.  But that symlink is not present, at least on 2.6.32-ARCH. I'm not entirely sure because I used to build against a kernel taken directly from kernel.org and recompiled with specific options, but I think this link was there previously.

It's no big deal to make this symlink myself for this time, but I'd like to know if its usage is deprecated in the stock kernel, as I would then update my Makefile to keep cross-distro upward compatibility, or if it is a Arch-specific choice.  Google did'nt provide me any useful inforamtion, but I'm not sure what keywords to use (Google doesn't really like paths...) What would then be the recommended way to build against the running kernel then?  The /usr/src/linux is not present either..., so I guess I would have to use /usr/src/linux-`uname -r`.

Thanks for your help

Last edited by Ber (2010-02-11 12:44:11)


V=RI sweet V=RI

Offline

#2 2010-02-11 12:36:47

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: /lib/modules/`uname -r`/build symlink missing [SOLVED]


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-02-11 12:43:55

Ber
Member
From: Belgium
Registered: 2006-07-05
Posts: 80
Website

Re: /lib/modules/`uname -r`/build symlink missing [SOLVED]

Ok, I didn't see the "26" in kernel26-headers when I first read it...

Thanks for making me re-read!


V=RI sweet V=RI

Offline

Board footer

Powered by FluxBB