Re: Kcomedilib headers

On Thu, Dec 04, 2003 at 05:51:12PM -0500, Calin A. Culianu wrote:
> On Thu, 4 Dec 2003, David Schleef wrote:
> > You should put it in a documentation/examples directory.  It is not
> > supposed to be installed like a normal header, since Linux doesn't
> > have the concept of installing headers to build kernel modules.
> 
> That makes me sad.  We should invent our own place for it then! :)

I recommend either /usr/i386-kernel-linux/include or
/usr/lib/linux-modules-2.4.23/include/.  The former treats building code
to be inserted as a module as an "architecture" (it is, roughly).  The
latter addresses the difficulty that Linux has with keeping a stable
module ABI.

(Normally, you'd use i386-unknown-linux-kernel as an architecture
name, with "kernel" being a flavor of linux, but autoconf doesn't
handle it correctly.)

Someone should convince RTAI to use this, too.



dave...

Received on 2003-12-04Z23:25:17