Re: build -->/usr/src/linux

Miquel van Smoorenburg
2001-04-08T21:49:27Z

In article <3AD0A029.C17C3EFC@rcn.com>,
Marvin Stodolsky <stodolsk@rcn.com> wrote:
>Thanks for responding. But I would still like to understand what the
>functionality is of the build --> /usr/src/linuc. Is it dispensable,
>once the module tree has been installed?

It's needed for modules that are distributed sperately, so that
they can use cc -I /lib/modules/`uname -r`/build/include

Or even

l=`pwd`
cd /lib/modules/`uname -r`/build
make $l/module.o

.. but there should be a cleaner way to get at the CFLAGS used
to compile the kernel.

Mike.