Date: Wed, 16 Nov 2005 21:34:14 -0500 From: "Yong Ma" <mayong@mail.com> To: "M. Warner Losh" <imp@bsdimp.com>, jhb@freebsd.org Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: How to make my new driver be configurable in the kernel configuration file? Message-ID: <20051117023414.8A2C21642FE@ws1-4.us4.outblaze.com>
next in thread | raw e-mail | index | archive | help
>=20 > Usually that's spelled '#include <dev/mydevice/mydevice.h>' since it > is relative to one of the -I paths. In practice, however, it rarely > makes a difference. >=20 > Warner Yes,it works.I made it as a "standard".but I want to make it as a "optional= " so I can config it in the kernel configuration file(MYKERNEL) as "device= mydevice" to decide whether it will be load when system boots. It seemed not enough only add a line "dev/mydevice/mycevice.c optional= device" in sys/conf/files.i386 .There will be a syntax error when c= onfig MYKERNEL. Something else needed? Thanks a lot! Yong Ma --=20 ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051117023414.8A2C21642FE>