Building a kernel with config ?

Sean Bryant sean at cyberwang.net
Tue Sep 26 08:23:59 PDT 2006


Gouverneur, Thomas wrote:
> Make buildkernel KERNCONF=CONFIG
> Make installkernel KERNCONF=CONFIG
> 
> 
> This is enough for only compiling kernel and not world and this is the 
> Smartest way according to FreeBSD handbook.
> 
> --
> Thomas Gouverneur
> Junior UNIX Administrator
> TI Automotive
> 
> -----Original Message-----
> From: owner-freebsd-stable at freebsd.org
> [mailto:owner-freebsd-stable at freebsd.org] On Behalf Of Pete French
> Sent: mardi 26 septembre 2006 12:24
> To: freebsd-stable at freebsd.org
> Subject: Building a kernel with config ?
> 
>> On Mon, 25 Sep 2006 11:34:42 -0700, "Kevin Oberman" <oberman at es.net>
> wrote:
>> 2. Building a kernel with config is not officially supported. It's at
>>   your risk and may not work in all cases. Build a kernel with:
>>   cd /usr/src
>>   make buildkernel
> 
> I was not aware that you wern't supposed to use config anymore - and I
> am not convinced that the suggested alternative is actually a replacement
> as I thought that buildkernel required you to have built the world first ?
> Is this no longer true ? If it *is* true thhen what is the alternative to
> using 'config' which should be used if you are on a system where you do
> not have the time or the disc space to rebuild the world and simply want
> to recompile the kernel ?
> 
> -pete.
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
> 
> The information contained in this transmission may contain privileged and confidential information.  It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"


Another way you could achieve the same thing is:
make kernel KERNCONF=KERNNAME

this will combine both steps in to one.
Also for those who want to omit the KERNCONF step set KERNCONF in 
/etc/make.conf and you can omit the KERNCONF argument.

Its sometimes nice to keep things really simple.


More information about the freebsd-stable mailing list