From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 09:18:11 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7E8B1065674 for ; Tue, 3 Jul 2012 09:18:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id A7D3D8FC14 for ; Tue, 3 Jul 2012 09:18:11 +0000 (UTC) Received: from r56.edvax.de (port-92-195-56-63.dynamic.qsc.de [92.195.56.63]) by mx01.qsc.de (Postfix) with ESMTP id D60AB3DAF9; Tue, 3 Jul 2012 11:08:27 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q6398RjY004437; Tue, 3 Jul 2012 11:08:27 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 3 Jul 2012 11:08:27 +0200 From: Polytropon To: "Thomas Mueller" Message-Id: <20120703110827.8735a19e.freebsd@edvax.de> In-Reply-To: <6D.85.32097.D23B2FF4@smtp01.insight.synacor.com> References: <6D.85.32097.D23B2FF4@smtp01.insight.synacor.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Wojciech, Puchar , Polytropon , freebsd-questions@freebsd.org Subject: Re: WITHOUT_MODULES in /etc/make.conf doesn't work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2012 09:18:12 -0000 On Tue, 03 Jul 2012 04:54:05 -0400, Thomas Mueller wrote: > from Polytropon : > > > On Mon, 02 Jul 2012 22:59:44 -0400, Thomas Mueller wrote: > > > How does one, when building the kernel, prevent building one or more modules? > > > Use the "new" means of /etc/src.conf (see "man src.conf" for > > details) to prevent the building of modules. > > I looked through "man make.conf" and "man src.conf" and couldn't find what you mean by the "new" means of /etc/src.conf . > > I saw references to WITHOUT_MODULES in "man make.conf" but not "man src.conf". Yes, /etc/src.conf uses WITHOUT_* on a per-module basis, so you need to explicitely name the modules not to build. But you're right, there's only WITHOUT_USB (for not building the USB-related parts), so going with kernel configuration would be a good point to start -- the more precise you can define your test setting and its variables, the better you can diagnose the problem. In /etc/make.conf, you could use MODULES_OVERRIDE to define the set of modules you want (because only _those_ will then be build) and keeping their functionality out of the kernel. In this case, you have control over your test setting using the modules. The same files offers NO_MODULES=yes to avoid building modules at all (use custom kernel instead). If you decide to use WITHOUT_MODULES, you can define the set of modules you want to avoid building, everything else will be built. > Would > WITHOUT_MODULES= ulpt > work better in /etc/src.conf than in /etc/make.conf ? No, /etc/src.conf as (according to its manpage) a defined set of variables that will be considered when building (or _not_ building) certain modules. > Besides the toxic (?) ulpt.ko, there are a lot of modules that > would never be used on my hardware, and other modules that could > be built in the kernel as non-modules (such as support for msdosfs > and ext2fs, which I don't want to be without). That's a good setting for using a custom kernel and not even building the modules for the non-used functionalities. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...