From owner-freebsd-questions@FreeBSD.ORG Sat Aug 16 11:00:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B595854E for ; Sat, 16 Aug 2014 11:00:11 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 788182D11 for ; Sat, 16 Aug 2014 11:00:10 +0000 (UTC) Received: from r56.edvax.de (port-92-195-111-1.dynamic.qsc.de [92.195.111.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id A3DE625386; Sat, 16 Aug 2014 13:00:07 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s7GB06Ha001926; Sat, 16 Aug 2014 13:00:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 16 Aug 2014 13:00:06 +0200 From: Polytropon To: Mohsen Pahlevanzadeh Subject: Re: buildworld and next kernel compilation Message-Id: <20140816130006.ed1b678d.freebsd@edvax.de> In-Reply-To: <1408172733.5441.9.camel@debian> References: <1408172733.5441.9.camel@debian> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Sat, 16 Aug 2014 11:00:11 -0000 On Sat, 16 Aug 2014 11:35:33 +0430, Mohsen Pahlevanzadeh wrote: > Dear BSD man, > > Suppose i compile my kernel via: > > /////////////////////////////////////////////////////// > svn co svn://svn.freebsd.org/base/stable/10 /usr/src > svn up /usr/src > cd /usr/src > make buildworld > ### edit my MYKERNELCONF > make kernel KERNELCONF=MYKERNELCONF ^^ I assume you have correctly used KERNCONF=MYKERNELCONF. The variable KERN*EL*KONF will be ignored and GENERIC will be used. The rest of your procedure looks correct. > My question: suppose i need to again compile my kernel and add fooobar, > What do you suggesst procedure for compilation according to i compile > once? I'd suggest to use the following approach in multi-user mode: # cd /usr/src # make clean ... edit configuration file ... # make kernel KERNCONF=MYKERNELCONF # reboot Note that "make kernel" is short for "make buildkernel" followed by "make installkernel", but that's what you need, so it's less typing. :-) As you didn't change version numbers (new checkout of sources), kernel and world version are still in sync. This is a requirement. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...