Subject: Re: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
To: Manuel Bouyer <firstname.lastname@example.org>
From: Greg A. Woods <email@example.com>
Date: 04/30/1998 11:50:41
[ On Thu, April 30, 1998 at 09:48:19 (+0200), Manuel Bouyer wrote: ]
> Subject: Re: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
> I think we need to have the kernel includes files installed in /usr/include.
> This is needed for building lkms and kmem grovelers, and I don't think
> requiring the kernel sources to be installed for building them is a good thing.
I don't see the logic there. It should be possible to build lkm's and
other stuff that goes beyond the abilities of libkvm, etc. in either
situation through proper use of the compiler's '-I' option. (Of course
because of the convention of including kernel files as <sys/xxxxx.h>,
this assumes that all relevant kernel headers will by in a "sys" subdir.)
In an ideal world the source tree would build self-contained, and it
would be possible to build several different releases of an OS on a
single machine without having to use chroot. This would make SCM of the
whole OS so much simpler. Hopefully the need for cross-compilation will
lead us in this general direction (since this will solve both problems).
Greg A. Woods
+1 416 443-1734 VE3TCP <firstname.lastname@example.org> <robohack!woods>
Planix, Inc. <email@example.com>; Secrets of the Weird <firstname.lastname@example.org>