Re: Compiling own module

On Tue, Apr 05, 2005 at 08:25:42PM +0200, echt_keiner_at_web.de wrote:
> Sorry if this question was asked before. But i couldn't find an
> answer in the archive.
> How can i compile my own comedi module. I copied the skel.c file
> and made some changes, but i dont know how to compile it. The
> way descripted on http://www.comedi.org/doc/x1283.html#INTEGRATINGDRIVER
> doesnt work for the tar.gz and the cvs version. The tar.gz
> archive doesn't have a Config.in and the cvs Version doesn't
> have a Makefile.in.

I just noticed the other day this needed fixing.  It's quite
simple now, in comedi/drivers/Makefile.am:

  - add my_driver.ko to the module_PROGRAMS list
  - add the line 'my_driver_ko_SOURCES = my_driver.c' in the
    alphabetically appropriate place.

Then run ./autogen.sh in the top-level directory.  Running
autogen requires that you have autoconf and automake installed,
which is always true if you're compiling from CVS.



dave...

Received on 2005-04-05Z18:16:25