Adding a new kernel module?

Gavin Atkinson gavin at FreeBSD.org
Thu Jan 8 10:16:12 PST 2009


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


More information about the freebsd-current mailing list