Let it be known that it is not always necessary to build world before

building a kernel.

PR:		20191
Submitted by:	Dan Langille <dan@freebsddiary.org>
Expanded on by:	Eric Ogren <eogren@earthlink.net>
This commit is contained in:
Jim Mock 2000-07-26 17:38:14 +00:00
parent 47b4ed09b2
commit 115a84d651
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=7728
2 changed files with 48 additions and 8 deletions

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/kernelconfig/chapter.sgml,v 1.29 2000/07/15 09:38:36 alex Exp $
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/kernelconfig/chapter.sgml,v 1.30 2000/07/25 09:34:10 alex Exp $
-->
<chapter id="kernelconfig">
@ -160,14 +160,34 @@
&prompt.root; <userinput>make</userinput>
&prompt.root; <userinput>make install</userinput></screen>
<para>For FreeBSD 4.x or later (or upgrading from FreeBSD 3.x to
FreeBSD 4.x or higher), use the following commands (be sure you
have <link linkend="cutting-edge">built world</link> before!):</para>
<para>If you have just upgraded to a newer version of 4.X or
higher (ie from 3.X to 4.0-STABLE, or even from 4.0-STABLE to a
later version of 4.0-STABLE), make sure you have <link
linkend="cutting-edge">built world</link>, and then run the
following commands:</para>
<screen>&prompt.root; <userinput>cd /usr/src</userinput>
&prompt.root; <userinput>make buildkernel KERNEL=MYKERNEL</userinput>
&prompt.root; <userinput>make installkernel KERNEL=MYKERNEL</userinput></screen>
<para>If you have <emphasis>not</emphasis> upgraded your source
tree in any way (you have not run <application>CVSup</application>,
<application>CTM</application>, or used
<application>anoncvs</application>, then you should use the
<command>config</command>, <command>make depend</command>,
<command>make</command>, <command>make install</command> sequence.</para>
<warning>
<para>If you have upgraded your sources since your last kernel
build, you <emphasis>must</emphasis> use the <command>make
buildkernel</command> method to build your kernel. Otherwise,
old utilities will be used to build the kernel, which will
probably fail. <emphasis>Do not use the
<command>config</command>/<command>make</command> sequence to
build your kernel if you have updated the
sources!</emphasis></para>
</warning>
<para>The new kernel will be copied to the root directory as
<filename>/kernel</filename> and the old kernel will be moved to
<filename>/kernel.old</filename>. Now, shutdown the system and

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/kernelconfig/chapter.sgml,v 1.29 2000/07/15 09:38:36 alex Exp $
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/kernelconfig/chapter.sgml,v 1.30 2000/07/25 09:34:10 alex Exp $
-->
<chapter id="kernelconfig">
@ -160,14 +160,34 @@
&prompt.root; <userinput>make</userinput>
&prompt.root; <userinput>make install</userinput></screen>
<para>For FreeBSD 4.x or later (or upgrading from FreeBSD 3.x to
FreeBSD 4.x or higher), use the following commands (be sure you
have <link linkend="cutting-edge">built world</link> before!):</para>
<para>If you have just upgraded to a newer version of 4.X or
higher (ie from 3.X to 4.0-STABLE, or even from 4.0-STABLE to a
later version of 4.0-STABLE), make sure you have <link
linkend="cutting-edge">built world</link>, and then run the
following commands:</para>
<screen>&prompt.root; <userinput>cd /usr/src</userinput>
&prompt.root; <userinput>make buildkernel KERNEL=MYKERNEL</userinput>
&prompt.root; <userinput>make installkernel KERNEL=MYKERNEL</userinput></screen>
<para>If you have <emphasis>not</emphasis> upgraded your source
tree in any way (you have not run <application>CVSup</application>,
<application>CTM</application>, or used
<application>anoncvs</application>, then you should use the
<command>config</command>, <command>make depend</command>,
<command>make</command>, <command>make install</command> sequence.</para>
<warning>
<para>If you have upgraded your sources since your last kernel
build, you <emphasis>must</emphasis> use the <command>make
buildkernel</command> method to build your kernel. Otherwise,
old utilities will be used to build the kernel, which will
probably fail. <emphasis>Do not use the
<command>config</command>/<command>make</command> sequence to
build your kernel if you have updated the
sources!</emphasis></para>
</warning>
<para>The new kernel will be copied to the root directory as
<filename>/kernel</filename> and the old kernel will be moved to
<filename>/kernel.old</filename>. Now, shutdown the system and