Date: Thu, 18 May 2000 02:32:33 +0200 From: "mouss" <usebsd@free.fr> To: "freebsd" <freebsd-questions@FreeBSD.ORG> Subject: RE: How can I add my code into the kernel of Freebsd Message-ID: <NDBBJDFPGLMLFHLNEEOMEEMAFHAA.usebsd@free.fr> In-Reply-To: <3920366B.516A566E@seu.edu.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <opt_myopt.h>" 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJDFPGLMLFHLNEEOMEEMAFHAA.usebsd>