Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 20:55:10 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Steve Tremblett <sjt@cisco.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: adding options/devices/etc to kernel
Message-ID:  <20021115185510.GB90613@sunbay.com>
In-Reply-To: <20021115134613.M14852@sjt-u10.cisco.com>
References:  <20021115134613.M14852@sjt-u10.cisco.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--qcHopEYAB45HaUaB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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.
>=20
> As far as I can tell, I have to put the following things in place:
>=20
> sys/conf/options:
> NETGRAPH_FOO        opt_netgraph.h
>=20
> sys/conf/files:
> netgraph/ng_foo.c   optional netgraph_foo
>=20
> Are there any other steps that I'm missing?
>=20
> 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.
>=20
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,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

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

--qcHopEYAB45HaUaB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE91UMOUkv4P6juNwoRAmXJAJ9BPXFyHT15aK0CP/LpUZJZz7yUWACfSMRL
+p/TR5qXmEOK5umNIKBXVX4=
=lNJv
-----END PGP SIGNATURE-----

--qcHopEYAB45HaUaB--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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