Ignore:
Timestamp:
03/08/2023 09:27:34 PM (19 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
Children:
25cd02b, 2858f02
Parents:
d0a9bda4
Message:

Suggest make localmodconfig for kernel

This is less generic than defconfig, and you can then tell
not to tweak options...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    rd0a9bda4 rde67916  
    9999    <caution>
    100100      <para>A good starting place for setting up the kernel configuration is to
    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>
     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>
    104107
    105108      <para>Do not disable any option enabled by <command>make
    106       defconfig</command> unless the following note explicitly makes it
     109      localmodconfig</command> unless the following notes explicitly make it
    107110      disabled or you really know what you are doing.</para>
    108111    </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>
    109119
    110120    <note>
     
    313323          processors in x2APIC mode.  x2APIC may be enabled by firmware on
    314324          64-bit x86 systems, and a kernel without this option enabled will
    315           panic on boot if x2APIC is enabled by firmware.  This option has
     325          panic on boot if x2APIC is enabled by firmware.  This option
    316326          has no effect, but also does no harm if x2APIC is disabled by the
    317327          firmware.</para>
Note: See TracChangeset for help on using the changeset viewer.