On Tue, Nov 12, 2002 at 06:59:17PM +0100, Holger Wiechert wrote:
> I just need a tip about where to place source files.
> I downloaded the kernel sources (kernel-source-2.4.18)
> and the kernel-headers (kernel-headers-2.4.18-bf.2.4) via dselect.
> So they are now in /usr/src. I read somewhere that it's not a good
> idea to place them directly below /usr/src.

That's an old, old problem that doesn't exist anymore.  You can quite
safely build your kernel in /usr/src/linux/.

> Can anyone give me a good hint where to put (extract) the sources
> and how the final directory structure should look like?

Just do leave them there.  Or undo them in your home directory, or
wherever you like.  The only real issues are a) where do you have a few
hundred meg free to build the kernel, and b) do you want to build it as
root?  If you want to build it as your normal user (which is quite
simple using fakeroot), then put it in your home dir, I guess, or
anywhere else you can write to.

> I'm about to install the dri driver for the ati rage 128, but
> compilation fails (since the kernel-header sources are not available).

I'm not quite sure what this means.  If you're building your own kernel,
then do so.  Use kernel-package for bonus marks and an easier life.  Is
this ATI rage driver part of the kernel source, part of the X source,
from Debian or from somewhere else?

> Is it usually a good approach to manually change the makefile such
> that the compiler will find the headers or is there any better way
> (like using the compiler's search path and only providing a link
> to the sources)?

I'm still not quite sure what you're trying to do here.  Are you trying
to build a new kernel?

-rob

Attachment: msg12716/pgp00000.pgp
Description: PGP signature

Reply via email to