From owner-freebsd-questions Wed May 17 23: 2: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from postfix3.free.fr (postfix3.free.fr [212.27.32.22]) by hub.freebsd.org (Postfix) with ESMTP id 750A337BAB5 for ; Wed, 17 May 2000 23:02:01 -0700 (PDT) (envelope-from usebsd@free.fr) Received: from safi (paris11-nas7-52-201.dial.proxad.net [212.27.52.201]) by postfix3.free.fr (Postfix) with SMTP id 5E99287555 for ; Thu, 18 May 2000 02:23:37 +0200 (CEST) From: "mouss" To: "freebsd" Subject: RE: How can I add my code into the kernel of Freebsd Date: Thu, 18 May 2000 02:32:33 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 In-Reply-To: <3920366B.516A566E@seu.edu.cn> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This depends on what you want to do! you'll generally have to modify: - a copy of GENERIC and conf/options to declare new options. This ssumes that when you add an option, say MYOPT, and use it in a file (#ifdef MYOPT), you'll add "#include " at the beginning of the file. This .h file is automatically generated. - modify conf/options to add new files. if you add kern/myfeature.c, and you only enable it if the option MYOPT is set, then add a line like: "kern/myfeature.c optional myopt" If anybody here see a "bug" in what I've said, please enlighten the poor guy I am. regards, mouss To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message