Re: Adding a new kernel module?

From: Gavin Atkinson <gavin_at_FreeBSD.org>
Date: Thu, 08 Jan 2009 18:16:08 +0000
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
Received on Thu Jan 08 2009 - 17:16:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:40 UTC