From owner-freebsd-questions@FreeBSD.ORG Thu Oct 25 07:51:42 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB4E9343 for ; Thu, 25 Oct 2012 07:51:42 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.224.110]) by mx1.freebsd.org (Postfix) with ESMTP id 768958FC17 for ; Thu, 25 Oct 2012 07:51:42 +0000 (UTC) Received: from X220.ovitrap.com ([122.129.201.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id q9P7pcB6015717; Thu, 25 Oct 2012 01:51:40 -0600 Date: Thu, 25 Oct 2012 14:51:38 +0700 From: Erich Dollansky To: jb Subject: Re: kernel config Message-ID: <20121025145138.10c1f745@X220.ovitrap.com> In-Reply-To: References: <20121025140453.06fbf81e@X220.ovitrap.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 07:51:42 -0000 Hi, On Thu, 25 Oct 2012 07:26:27 +0000 (UTC) jb wrote: > Erich Dollansky ovitrap.com> writes: > > > ... > > Just check how a custom kernel is build. You can then build three > > versions of it. One with nothing, one with the modules you want and > > one with the non-conflicting modules build-in. > > > > Just read the handbook regarding custom kernels. > > ... > > I have already read all docs :-) > The problem is I still do not get it ... > ok, the I hope that I will get what you want. > I understand that files sys/conf/NOTES and sys//conf/NOTES > contain directive lines like 'device', 'options', 'machine', 'ident', > 'maxusers', 'makeoptions' etc that the user may place in the kernel > configuration that she will run config(8) with. > Yes, taken them as examples. > What is the specific mechanism (directive in GENERIC file, or You copy GENERIC into a new file i.e. ALLOPTIONS and set then is this file the options you want. You would need three files like this. ALLOPTIONS, NOOPTIONS and MYOPTIONS as an example. NOOPTIONS would then contain all options removed which you do not want. Be careful here as you might get a kernel which will not boot anymore. MYOPTIONS will contain then the options you would like to have in your kernel. Of course, you can use any other names you want to use. > something else in GENERIC file or elsewhere) that says build support > for cd9660 fs as built-in and ext2fs as module, or entire kernel as The modules are always build, at least to my knowledge. So, you do not need any options for this. You just need to load them later. > built-in, or entire kernel as modular (except things that must be > built-in, but then what things and where is this specified) ? Did you get what I wrote up there or was this not what you want to do? Erich