Date: Thu, 17 Nov 2005 10:55:46 -0500 From: John Baldwin <jhb@freebsd.org> To: "Yong Ma" <mayong@mail.com> 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: <200511171055.47539.jhb@freebsd.org> In-Reply-To: <20051117023414.8A2C21642FE@ws1-4.us4.outblaze.com> References: <20051117023414.8A2C21642FE@ws1-4.us4.outblaze.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511171055.47539.jhb>
