Date: Sat, 16 Aug 2014 13:00:06 +0200 From: Polytropon <freebsd@edvax.de> To: Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> Cc: freebsd-questions@freebsd.org 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140816130006.ed1b678d.freebsd>