From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 26 08:10:22 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EADC16A401 for ; Wed, 26 Apr 2006 08:10:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D37CD43D4C for ; Wed, 26 Apr 2006 08:10:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3Q8ALQi029567 for ; Wed, 26 Apr 2006 08:10:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3Q8ALDC029566; Wed, 26 Apr 2006 08:10:21 GMT (envelope-from gnats) Date: Wed, 26 Apr 2006 08:10:21 GMT Message-Id: <200604260810.k3Q8ALDC029566@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Andrey V. Elsukov" Cc: Subject: Re: kern/96346: [PATCH] disable build of modules that are already in kernel image X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Andrey V. Elsukov" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 08:10:22 -0000 The following reply was made to PR kern/96346; it has been noted by GNATS. From: "Andrey V. Elsukov" To: Robert Millan Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/96346: [PATCH] disable build of modules that are already in kernel image Date: Wed, 26 Apr 2006 12:08:23 +0400 Robert Millan wrote: > I don't understand. Does -DNO_MODULES disable all modules, or just those that > are already built in kernel? No, NO_MODULES is a make option, that can made a kernel build much faster. And command `make buildkernel reinstallkernel -DNO_MODULES KERNCONF=SOMEKERNEL' can be used for the fast kernel reinstallation. You can remove some options from kernel and rebuild and reinstall it without building modules. With your patch you will lost some modules in this case. But i think that your option WITHOUT_MODULES can be usable for build of some smallest systems based on FreeBSD. > And if it disables only those in kernel, why isn't this enabled by default? It disables all modules. -- WBR, Andrey V. Elsukov