From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 03:08:30 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 1A9F0106564A for ; Tue, 3 Jul 2012 03:08:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id CEF338FC16 for ; Tue, 3 Jul 2012 03:08:29 +0000 (UTC) Received: from r56.edvax.de (port-92-195-56-63.dynamic.qsc.de [92.195.56.63]) by mx02.qsc.de (Postfix) with ESMTP id 5524927667; Tue, 3 Jul 2012 05:08:23 +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 q6338MOn002290; Tue, 3 Jul 2012 05:08:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 3 Jul 2012 05:08:22 +0200 From: Polytropon To: "Thomas Mueller" Message-Id: <20120703050822.732b7d09.freebsd@edvax.de> In-Reply-To: References: 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: 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 03:08:30 -0000 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 have > WITHOUT_MODULES= ulpt > in /etc/make.conf > but ulpt.ko always appears in /boot/kernel directory. > > For now, I want to build all modules except for this one, but > perhaps I could keep everything in kernel config and not build modules. Also a possibility - for "best control" case, combine both, e. g. a custom kernel that only includes what you explicitely specity, and src.conf to avoid building of modules you're intendedly not going to need. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...