Re: Building kernels the Debian way
On 2008-12-09 20:02 +0100, lee wrote:
> On Mon, Dec 08, 2008 at 10:22:51PM +0100, Sven Joachim wrote:
>>
>> > Create new default link to new source code
>>
>> This is absolutely unnecessary and maybe even harmful. Read the README
>> in the Linux kernel tree why you should not do it.
>
> The NVIDIA driver doesn't install when it wants to compile a kernel
> module and you don't have the source in the default location.
Well, in the Debian package you are supposed to set MODULE_LOC if you
are not building the module in /usr/src. Doesn't that work with
make-kpkg?
> "
> Do NOT use the /usr/src/linux area! This area has a (usually
> incomplete) set of kernel headers that are used by the library header
> files. They should match the library, and not get messed up by
> whatever the kernel-du-jour happens to be.
> "
>
>
> Who or what puts header files into /user/src/linux? It didn't exist
> before I created it.
Nobody, hopefully. But some mad people (and old distributions!) create
symlinks from /usr/include to /usr/src/linux/include. That way lies
madness, see e.g. http://linuxgazette.net/issue62/tag/4.html.
Sven
Reply to: