How to make my new driver be configurable in the kernel configuration file?

Yong Ma mayong at mail.com
Fri Nov 18 01:34:39 GMT 2005


----- Original Message -----
From: "John Baldwin" <jhb at freebsd.org>
To: "Yong Ma" <mayong at mail.com>
Subject: Re: How to make my new driver be configurable in the kernel	configuration file?
Date: Thu, 17 Nov 2005 10:55:46 -0500

> 
> 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(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
> > config MYKERNEL. Something else needed?
> 
> 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?
> 
> --
> John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"

Yes,and I got the reason:There wiil be a syntax error if the name behind 'device' in MYKERNEL contains numbers(in the middle). so "device cryptcard" passed but "device sjy22b" caused error. 

Thanks
Yong

-- 
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/



More information about the freebsd-hackers mailing list