From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 19:38:47 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64BF42B7 for ; Thu, 9 Apr 2015 19:38:47 +0000 (UTC) Received: from mail-vn0-x234.google.com (mail-vn0-x234.google.com [IPv6:2607:f8b0:400c:c0f::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2BA9CCBA for ; Thu, 9 Apr 2015 19:38:47 +0000 (UTC) Received: by vnbg1 with SMTP id g1so21728560vnb.2 for ; Thu, 09 Apr 2015 12:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=A3EB3rokvC2vmFrHMKIcQRiN8bwWSV4L+cJxpqv7b/A=; b=yiGPzLwQOvJZk3dWNkKS/ogPJqO0tgzH78n0aFxux3O13YkHDl+qRXX5O/qVLy7ImU w27e56mejq8YVnFQ5jhdgnv+RJlzF9b/tlwNX1czTdAUj3RD2FcyEWpzxyLlTLcRioL8 L3LovwGt+fVgnQaMh3wNAiC6rw3dHFdMxRYUS2wm/3pkF2/w1gNxLOOvK0KdNPiHZ0ZL xbIMd+3cn675NaQfldgAS248hFuqR+9FDu26af7s4g2ipu+IiR/cY5GiDN7IZP5VSQJR YIhkq08f4Hf0z4q14KhBr2+Ox7lSjvj3U563Tfz8l6UJrJuhNnlK0Ac26cRJy/jtVzYf 6zxQ== X-Received: by 10.52.254.2 with SMTP id ae2mr24983194vdd.33.1428608326148; Thu, 09 Apr 2015 12:38:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.61.100 with HTTP; Thu, 9 Apr 2015 12:38:25 -0700 (PDT) From: Pratik Singhal Date: Fri, 10 Apr 2015 01:08:25 +0530 Message-ID: Subject: Compilation taking too long time To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 19:38:47 -0000 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. How, can I make sure that only the relevant files are built and not the whole kernel again and again ?