Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jan 2009 18:16:08 +0000
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        barney_cordoba@yahoo.com
Cc:        current@FreeBSD.org
Subject:   Re: Adding a new kernel module?
Message-ID:  <1231438568.98820.7.camel@buffy.york.ac.uk>
In-Reply-To: <321406.5257.qm@web63908.mail.re1.yahoo.com>
References:  <321406.5257.qm@web63908.mail.re1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2009-01-08 at 09:08 -0800, Barney Cordoba wrote:
> I'm testing  a new kernel module that needs to be compiled in, and
> everything works fine except that make doesn't make the module for the
> new driver. The driver is under dev
> 
> /sys/dev/foo
> 
> How does the kernel make system decide what modules to build? How can
> I add a new kernel modules to the build system to get it to build the
> new module automatically?

Short answer: have a look at /usr/src/sys/modules/Makefile and the
directories below that.

It might be a little out of date, but have a look at
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-kld.html

Gavin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1231438568.98820.7.camel>