Revert "Suggest make localmodconfig for kernel"

This reverts commit de679165f9.

localmodconfig does not work very well.  It can only *un*select things
already enabled as modules if the module is not loaded by the host.  It
won't select anything new, nor unselect unneeded things already set to
"y" instead of "m".

Maybe you think we can copy .config from a "mainstream" distro
(producing a highly modular kernel) and use "make localmodconfig", but
when we tested it with a Debian host kernel config, the resulted kernel
refuses to boot.

"make allmodconfig && make localmodconfig" does not work well either:
"allmodconfig" selects many things as y (these thing are not available
as a module) but "localmodconfig" fails to unselect them.
This commit is contained in:
Xi Ruoyao 2023-03-09 13:57:45 +08:00
parent 25cd02b9db
commit 34f1344072
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -98,25 +98,15 @@
<caution>
<para>A good starting place for setting up the kernel configuration is to
run <command>make localmodconfig</command>. If the host kernel version
is not too different from the version of the kernel you are building,
this will set the base configuration to a good state similar to what
the host uses. Another possibility is to use <command>make
localyesconfig</command>, which does the same except everything is built
into the kernel.</para>
run <command>make defconfig</command>. This will set the base
configuration to a good state that takes your current system architecture
into account.</para>
<para>Do not disable any option enabled by <command>make
localmodconfig</command> unless the following notes explicitly make it
defconfig</command> unless the following note explicitly makes it
disabled or you really know what you are doing.</para>
</caution>
<note>
<para>Another possibility is to run <command>make defconfig</command>,
which creates a more generic configuration for your architecture. You
may then have to disable drivers for hardware you do not have if
you want to reduce the kernel size.</para>
</note>
<note>
<para>Be sure to enable/disable/set the following features or the system might
not work correctly or boot at all:</para>
@ -322,7 +312,7 @@ Device Drivers ---&gt;
<para>Support running the interrupt controller of 64-bit x86
processors in x2APIC mode. x2APIC may be enabled by firmware on
64-bit x86 systems, and a kernel without this option enabled will
panic on boot if x2APIC is enabled by firmware. This option
panic on boot if x2APIC is enabled by firmware. This option has
has no effect, but also does no harm if x2APIC is disabled by the
firmware.</para>
</listitem>