From owner-freebsd-net@FreeBSD.ORG Tue Dec 27 06:40:25 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 B8B9A1065670 for ; Tue, 27 Dec 2011 06:40:25 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 56F1A8FC08 for ; Tue, 27 Dec 2011 06:40:24 +0000 (UTC) Received: by werb13 with SMTP id b13so10199632wer.13 for ; Mon, 26 Dec 2011 22:40:24 -0800 (PST) Received: by 10.216.136.204 with SMTP id w54mr20349352wei.44.1324968024217; Mon, 26 Dec 2011 22:40:24 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.227.208.210 with HTTP; Mon, 26 Dec 2011 22:40:03 -0800 (PST) In-Reply-To: References: From: Juli Mallett Date: Mon, 26 Dec 2011 22:40:03 -0800 X-Google-Sender-Auth: vp6H0EJmsGKWYUkPVDMXfO-HWHA Message-ID: To: Rajneesh Kumar Content-Type: text/plain; charset=UTF-8 Cc: 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:40:25 -0000 On Mon, Dec 26, 2011 at 22:23, Rajneesh Kumar wrote: > 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 need to tell us what process you are using so we can give an example that best fits your existing workflow. There are ways we suggest for users and ways developers use, and it would be a shame to give you irrelevant suggestions. If you're using "make buildkernel" then you can add -DNO_CLEAN (or perhaps it's -DNOCLEAN) to avoid cleaning out the object directory first. This will keep dependencies up-to-date for you, and only rebuild what's necessary. What may be better, if you don't need a cross-compiler, is to do the kernel configuration by hand. So you might do something like: cd /path/to/src/sys/amd64/conf config GENERIC cd ../compile/GENERIC make depend make kernel And then when you make changes you can just do "make kernel". If you make a change that requires rerunning config(8), it will tell you to do "make cleandepend && make depend" or something like that first, to fix header and option dependencies that may not exist with your new configuration. Hopefully one of those two things will help, as anything else you might be doing is probably based on one of those processes, but if not you should let us know what you're doing now. Thanks, Juli.