On Fri, Nov 15, 2002 at 01:46:13PM -0500, Steve Tremblett wrote:
> I'm playing with netgraph specifically, but in general I'm curious and
> can't seem to find a doc in the manual that answers my question in
> reasonable detail.
> 
> I'm trying to find the specific path for how "options NETGRAPH_FOO" in
> the kernel config file translates to ng_foo.o being linked in the
> kernel.
> 
> As far as I can tell, I have to put the following things in place:
> 
> sys/conf/options:
> NETGRAPH_FOO        opt_netgraph.h
> 
> sys/conf/files:
> netgraph/ng_foo.c   optional netgraph_foo
> 
> Are there any other steps that I'm missing?
> 
> config(8) and /usr/share/examples/drivers/*.sh suggest that I should be
> using sys/i386/conf/files.NETGRAPH_FOO instead of sys/conf/files, but
> what about sys/conf/options?  There is no mention of
> sys/i386/conf/options.NETGRAPH_FOO.
> 
The options file is used solely to translate config(8) file options
into #define's in various include files.

See also /usr/share/doc/smm/02.config.


Cheers,
-- 
Ruslan Ermilov          Sysadmin and DBA,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          FreeBSD committer,
+380.652.512.251        Simferopol, Ukraine

http://www.FreeBSD.org  The Power To Serve
http://www.oracle.com   Enabling The Information Age

Attachment: msg38100/pgp00000.pgp
Description: PGP signature

Reply via email to