From owner-freebsd-net@FreeBSD.ORG Tue Dec 27 10:40:41 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AB91106566B for ; Tue, 27 Dec 2011 10:40:41 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id A554A8FC15 for ; Tue, 27 Dec 2011 10:40:40 +0000 (UTC) Received: by wibhr1 with SMTP id hr1so9777911wib.13 for ; Tue, 27 Dec 2011 02:40:39 -0800 (PST) Received: by 10.216.138.219 with SMTP id a69mr20848093wej.6.1324982439465; Tue, 27 Dec 2011 02:40:39 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id fq7sm27558099wbb.1.2011.12.27.02.40.37 (version=SSLv3 cipher=OTHER); Tue, 27 Dec 2011 02:40:38 -0800 (PST) Message-ID: <4EF9A0A7.1000304@my.gd> Date: Tue, 27 Dec 2011 11:40:39 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Compiling only "network" part of the kernel X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 10:40:41 -0000 On 12/27/11 7:23 AM, Rajneesh Kumar wrote: > Hi list, > > During my development, I want to check if my modules compile successfully > or not. I am only changing the ARP portion and whenever I compile my > kernel, it takes around 20mins and compiles all different modules also. > I just want to compile and check whether my ARP modules, which I have > changed, compile fine or not. How to do it? > You could always use MODULES_OVERRIDE to specify which modules you'd like to build. You'll still be recompiling the kernel itself but without *many* unneeded modules. Find for example a snippet from my /etc/make.conf: KERNCONF=DAM MODULES_OVERRIDE=geom/geom_label geom/geom_mirror aio zfs krpc opensolaris