Add tip which describes the way of building only custom modules.

Reviewed by: blackend
This commit is contained in:
Vitaly Bogdanov 2005-12-22 17:17:12 +00:00
parent 90dedd9ad3
commit ee722e2721
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=26681

View file

@ -374,6 +374,21 @@
described above.</para>
</note>
<tip>
<para>By default, when you build a custom kernel,
<emphasis>all</emphasis> kernel modules also will be rebuilded.
If you want to update a kernel faster or to build only custom
modules, you should edit <filename>/etc/make.conf</filename>
before starting to build the kernel:</para>
<programlisting>MODULES_OVERRIDE = linux acpi sound/sound sound/driver/ds1 ntfs</programlisting>
<para>This variable sets up a list of modules to build instead
of all of them. For other variables which you may find useful
in the process of building kernel, refer to &man.make.conf.5;
manual page.</para>
</tip>
<note>
<para>In &os;&nbsp;4.2 and older you must replace
<literal>KERNCONF=</literal> with <literal>KERNEL=</literal>.