From owner-freebsd-hackers Sat Jun 2 1:59:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 2CB3137B423 for ; Sat, 2 Jun 2001 01:59:26 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 25851 invoked by uid 1000); 2 Jun 2001 08:58:23 -0000 Date: Sat, 2 Jun 2001 11:58:23 +0300 From: Peter Pentchev To: Alfred Perlstein Cc: Jiangyi Liu , freebsd-hackers@FreeBSD.ORG Subject: Re: How to recompile kernel after minor changes? Message-ID: <20010602115823.D24747@ringworld.oblivion.bg> Mail-Followup-To: Alfred Perlstein , Jiangyi Liu , freebsd-hackers@FreeBSD.ORG References: <878zjb20fd.fsf@fatcow.home> <20010601210728.A1832@superconductor.rush.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010601210728.A1832@superconductor.rush.net>; from bright@rush.net on Fri, Jun 01, 2001 at 09:07:28PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 01, 2001 at 09:07:28PM -0400, Alfred Perlstein wrote: > * Jiangyi Liu [010601 20:25] wrote: > > Hi all, > > > > After just changing a little in sys/kern/kern_sig.c, how can I rebuild > > the kernel fast? I think it should not take such a long time as 'make > > buildkernel' does. Anyway, just kern_sig.c need to be recompiled and > > the kernel can be linked. So how do you guys do in such case? > > try: > make buildkernel -DNOCLEAN And if you've really only changed kern_sig.c, add -DMODULES_WITH_WORLD, too. This will cut down the kernel compile time to the dependencies' and set generation (which cannot be avoided in any sane build), and then compiling only 4-5 files. G'luck, Peter -- If I had finished this sentence, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message