From owner-freebsd-net@FreeBSD.ORG Tue Dec 27 06:44:04 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 43E5F106564A; Tue, 27 Dec 2011 06:44:04 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from procyon.xvoid.org (procyon.xvoid.org [IPv6:2001:470:28:4ba:20c:29ff:feb6:11bc]) by mx1.freebsd.org (Postfix) with ESMTP id A18A98FC15; Tue, 27 Dec 2011 06:44:03 +0000 (UTC) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.5/8.14.5) with ESMTP id pBR6i11D010028; Tue, 27 Dec 2011 10:44:01 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.5/8.14.5/Submit) id pBR6i1Fo010027; Tue, 27 Dec 2011 10:44:01 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: procyon.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Tue, 27 Dec 2011 10:44:01 +0400 From: Yuri Pankov To: Adrian Chadd Message-ID: <20111227064401.GB4177@procyon.xvoid.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Rajneesh Kumar , freebsd-net@freebsd.org 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 06:44:04 -0000 On Mon, Dec 26, 2011 at 10:35:33PM -0800, Adrian Chadd wrote: > On 26 December 2011 22:23, 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? > > Shouldn't just a normal "make" in the kernel config directory only > rebuild those parts that have changed? It also does a lot of cleanup and stuff, which can be skipped using -DKERNFAST (which in turn defines NO_KERNEL{CONFIG,CLEAN,DEPEND,OBJ}), if you know what you are doing. This is all described in Makefile.inc1. There's also MODULES_OVERRIDE (described in make.conf(5)), and, of course, sys/modules/ :-) Yuri