Date: Thu, 17 Nov 2005 20:34:37 -0500 From: "Yong Ma" <mayong@mail.com> To: "John Baldwin" <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: <20051118013438.3ACAE101E6@ws1-3.us4.outblaze.com>
next in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "John Baldwin" <jhb@freebsd.org> To: "Yong Ma" <mayong@mail.com> Subject: Re: How to make my new driver be configurable in the kernel config= uration file? Date: Thu, 17 Nov 2005 10:55:46 -0500 >=20 > On Wednesday 16 November 2005 09:34 pm, Yong Ma wrote: > > > 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. > > > > > > 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(MYKERNE= L) > > as "device mydevice" to decide whether it will be load when system boot= s. > > > > It seemed not enough only add a line "dev/mydevice/mycevice.c opti= onal > > device" in sys/conf/files.i386 .There will be a syntax error when > > config MYKERNEL. Something else needed? >=20 > No, that's all that's needed. Perhaps you can post your diff against > files.i386 and the line from MYKERNEL that is causing the error? >=20 > -- > John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" Yes,and I got the reason:There wiil be a syntax error if the name behind 'd= evice' in MYKERNEL contains numbers(in the middle). so "device cryptcard" p= assed but "device sjy22b" caused error.=20 Thanks Yong --=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?20051118013438.3ACAE101E6>