From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 23:13:31 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2CD48CB7 for ; Thu, 9 Apr 2015 23:13:31 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 040CEC5A for ; Thu, 9 Apr 2015 23:13:30 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 5B68033C1D; Thu, 9 Apr 2015 19:13:25 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 62FC339822; Thu, 9 Apr 2015 19:13:24 -0400 (EDT) From: Lowell Gilbert To: Pratik Singhal Subject: Re: Compilation taking too long time References: Reply-To: freebsd-questions@freebsd.org Date: Thu, 09 Apr 2015 19:13:23 -0400 In-Reply-To: (Pratik Singhal's message of "Fri, 10 Apr 2015 01:08:25 +0530") Message-ID: <443848opyk.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 23:13:31 -0000 Pratik Singhal writes: > Hello, I am new to freeBSD and trying to contribute to freeBSD. I have a > small question. > > Whenever I make a small change in the kernel, say apply a patch which only > affects 1 or 2 files and compile the kernel using the command :- > > > make KERNCONF=config_file buildkernel > > It takes a lot of time (around 1 hour) and starts rebuilding the whole > kernel instead of just building the relevant files. > > > I have checked the freeBSD handbook and checked the targets in Makefile , > but none of them provide information about this situation. Makefile targets specify *what* to build, not *how*. > How, can I make sure that only the relevant files are built and not the > whole kernel again and again ? Try the comments at the top of Makefile.inc1.