From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 18 01:34:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD51916A420 for ; Fri, 18 Nov 2005 01:34:39 +0000 (GMT) (envelope-from mayong@mail.com) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing2.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 189A343D49 for ; Fri, 18 Nov 2005 01:34:39 +0000 (GMT) (envelope-from mayong@mail.com) Received: from unknown (unknown [192.168.9.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 4B6B8180013F for ; Fri, 18 Nov 2005 01:34:38 +0000 (GMT) X-OB-Received: from unknown (205.158.62.55) by wfilter.us4.outblaze.com; 18 Nov 2005 01:34:38 -0000 Received: by ws1-3.us4.outblaze.com (Postfix, from userid 1001) id 3ACAE101E6; Fri, 18 Nov 2005 01:34:38 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "Yong Ma" To: "John Baldwin" Date: Thu, 17 Nov 2005 20:34:37 -0500 Received: from [159.226.5.225] by ws1-3.us4.outblaze.com with http for mayong@mail.com; Thu, 17 Nov 2005 20:34:37 -0500 X-Originating-Ip: 159.226.5.225 X-Originating-Server: ws1-3.us4.outblaze.com Message-Id: <20051118013438.3ACAE101E6@ws1-3.us4.outblaze.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? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 01:34:39 -0000 ----- Original Message ----- From: "John Baldwin" To: "Yong Ma" 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 ' 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 <>< 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/