Subject: Re: how to add arbitrary #defines into kernel driver code cleanly?
To: George Michaelson <ggm@apnic.net>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-help
Date: 03/10/2003 05:49:50
--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi,
On Mon, Mar 10, 2003 at 02:37:22PM +1000, George Michaelson wrote:
>=20
> scsiconf.c has SCSI_DELAY=3D2 but on a #ifndef SCSI_DELAY. I'd like to
> #define it up a bit (my USB attached SCSI looks to need a bit more
> settling time)
>=20
> I can see how to hack this in post config, but could somebody clue me
> into how you add an arbitrary #define value cleanly into a kernel
> build? it would seem to require a bit more than just adding options
> <X>=3D<val> in the config file.
>=20
> (files.* in some directory? some other process?)
options YOURVARIABLE=3Ditsvalue in your kernel config file. e.g.
options SCSI_DELAY=3D2
options(4):
DESCRIPTION
This manual page describes a number of miscellaneous kernel configuration
options that may be specified in a kernel config file. See config(8) for
information on how to configure and build kernels. Note: Options are
passed to the compile process as -D flags to the C compiler.
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> --
-- <salo@silcnet.org> --
--bg08WKrSYDhXBjb5
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
iD8DBQE+bBluiwjDDlS8cmMRAoEvAKCUQPaZbKgSAfcOttPHho9BH8PrAgCfQHS8
5iNgA9vBILZa7GFjvabXnIs=
=GEXC
-----END PGP SIGNATURE-----
--bg08WKrSYDhXBjb5--