From owner-freebsd-questions@FreeBSD.ORG Fri Nov 25 11:43:26 2011 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 92AD31065670; Fri, 25 Nov 2011 11:43:26 +0000 (UTC) Date: Fri, 25 Nov 2011 11:43:26 +0000 From: Alexander Best To: Thomas Mueller Message-ID: <20111125114326.GA38085@freebsd.org> References: <20111125044706.AD238106566B@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111125044706.AD238106566B@hub.freebsd.org> Cc: freebsd-questions@FreeBSD.org, "b. f." Subject: Re: Quick build of stripped-down kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2011 11:43:26 -0000 On Fri Nov 25 11, Thomas Mueller wrote: > from "b. f." : > > > If you are going to build most of the modules, but only want to > > exclude a few, then add the directories of the modules to be excluded > > (relative to /usr/src/sys/modules) to WITHOUT_MODULES, for example in > > /etc/make.conf. If you are only going to build a few modules, and want > > to exclude the majority of the modules, then add the directories of > > the modules that are to be built to MODULES_OVERRIDE. For no modules > > at all, set NO_MODULES. See /usr/src/sys/modules/Makefile and > > /usr/src/sys/conf/kern.post.mk for details. You may also save some > > time by using one of your faster machines to build the OS for the > > slower machines. > > Suppose you want to build more than one kernel so as to be able to choose at boot time. > > Then you might not want to build modules redundantly. So how would you make the modules from /boot/kernel accessible when booting /boot/kernel2? irrc there was a patch posted on some of the mailinglists not a long time ago, which added support for building only those modules, which aren't part of the kernel. this might be a good alternative, if you want a small footprint, but want to take advantage of all the freebsd kernel drivers/etc. cheers. alex > > Tom >