Changeset 34f1344


Ignore:
Timestamp:
03/10/2023 10:53:48 AM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
10262709
Parents:
25cd02b
git-author:
Xi Ruoyao <xry111@…> (03/09/2023 05:57:45 AM)
git-committer:
Xi Ruoyao <xry111@…> (03/10/2023 10:53:48 AM)
Message:

Revert "Suggest make localmodconfig for kernel"

This reverts commit de679165f9a63ce94202d356abbae2b9a3bff5c3.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    r25cd02b r34f1344  
    9999    <caution>
    100100      <para>A good starting place for setting up the kernel configuration is to
    101       run <command>make localmodconfig</command>. If the host kernel version
    102       is not too different from the version of the kernel you are building,
    103       this will set the base configuration to a good state similar to what
    104       the host uses. Another possibility is to use <command>make
    105       localyesconfig</command>, which does the same except everything is built
    106       into the kernel.</para>
     101      run <command>make defconfig</command>. This will set the base
     102      configuration to a good state that takes your current system architecture
     103      into account.</para>
    107104
    108105      <para>Do not disable any option enabled by <command>make
    109       localmodconfig</command> unless the following notes explicitly make it
     106      defconfig</command> unless the following note explicitly makes it
    110107      disabled or you really know what you are doing.</para>
    111108    </caution>
    112 
    113     <note>
    114       <para>Another possibility is to run <command>make defconfig</command>,
    115       which creates a more generic configuration for your architecture. You
    116       may then have to disable drivers for hardware you do not have if
    117       you want to reduce the kernel size.</para>
    118     </note>
    119109
    120110    <note>
     
    323313          processors in x2APIC mode.  x2APIC may be enabled by firmware on
    324314          64-bit x86 systems, and a kernel without this option enabled will
    325           panic on boot if x2APIC is enabled by firmware.  This option
     315          panic on boot if x2APIC is enabled by firmware.  This option has
    326316          has no effect, but also does no harm if x2APIC is disabled by the
    327317          firmware.</para>
Note: See TracChangeset for help on using the changeset viewer.