Ignore:
Timestamp:
07/31/2023 04:08:56 PM (11 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, multilib, 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:
57499d5
Parents:
2cf01ab7
Message:

kernel: Use new kernel configuration rendering method

Import kernel-config infrastructure from BLFS and use it for kernel
configuration. Note that kernel-config.py is slightly different from
BLFS: we need role="nodump" for <screen> here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    r2cf01ab7 r70bf551  
    131131      not work correctly or boot at all:</para>
    132132
    133 <screen role="nodump" revision="sysv"><emphasis role='blue'>G</emphasis>eneral setup ---&gt;
    134    [ ] <emphasis role='blue'>C</emphasis>ompile the kernel with warnings as errors [CONFIG_WERROR]
    135        <emphasis role='blue'>C</emphasis>PU/Task time and stats accounting ---&gt;
    136          [*] <emphasis role='blue'>P</emphasis>ressure stall information tracking [CONFIG_PSI]
    137          [ ] <emphasis role='blue'>R</emphasis>equire boot parameter to enable pressure stall information tracking
    138                                               [CONFIG_PSI_DEFAULT_DISABLED]
    139    &lt; &gt; <emphasis role='blue'>E</emphasis>nable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
    140    [*] <emphasis role='blue'>C</emphasis>ontrol Group support [CONFIG_CGROUPS]   ---&gt;
    141       [*] M<emphasis role='blue'>e</emphasis>mory controller [CONFIG_MEMCG]
    142    [ ] <emphasis role='blue'>C</emphasis>onfigure standard kernel features (expert users) [CONFIG_EXPERT]
    143 
    144 <emphasis role='blue'>P</emphasis>rocessor type and features ---&gt;
    145    [*] <emphasis role='blue'>B</emphasis>uild a relocatable kernel [CONFIG_RELOCATABLE]
    146    [*]   <emphasis role='blue'>R</emphasis>andomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE]
    147 
    148 <emphasis role='blue'>G</emphasis>eneral architecture-dependent options  ---&gt;
    149    [*] <emphasis role='blue'>S</emphasis>tack Protector buffer overflow detection [CONFIG_STACKPROTECTOR]
    150    [*]   <emphasis role='blue'>S</emphasis>trong Stack Protector [CONFIG_STACKPROTECTOR_STRONG]
    151 
    152 <emphasis role='blue'>D</emphasis>evice Drivers  ---&gt;
    153    <emphasis role='blue'>G</emphasis>eneric Driver Options  ---&gt;
    154      [ ] <emphasis role='blue'>S</emphasis>upport for uevent helper [CONFIG_UEVENT_HELPER]
    155      [*] M<emphasis role='blue'>a</emphasis>intain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
    156      [*]   <emphasis role='blue'>A</emphasis>utomount devtmpfs at /dev, after the kernel mounted the rootfs
    157                                                        [CONFIG_DEVTMPFS_MOUNT]
    158    <emphasis role='blue'>G</emphasis>raphics support ---&gt;
    159      <emphasis role='blue'>F</emphasis>rame buffer Devices ---&gt;
    160        &lt;*&gt; <emphasis role='blue'>S</emphasis>upport for frame buffer devices ---&gt;
    161    <emphasis role='blue'>C</emphasis>onsole display driver support ---&gt;
    162       [*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE]</screen>
    163 
    164 <screen role="nodump" revision="systemd">
    165 General setup ---&gt;
    166    [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
    167    [ ] Auditing Support [CONFIG_AUDIT]
    168    CPU/Task time and stats accounting ---&gt;
    169       [*] Pressure stall information tracking [CONFIG_PSI]
    170       [ ] Require boot parameter to enable pressure stall information tracking
    171                                                             [CONFIG_PSI_DEFAULT_DISABLED]
    172    &lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
    173    [*] Control Group support [CONFIG_CGROUPS]   ---&gt;
    174       [*] Memory controller [CONFIG_MEMCG]
    175    [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT]
    176 
    177 Processor type and features ---&gt;
    178    [*] Build a relocatable kernel [CONFIG_RELOCATABLE]
    179    [*]   Randomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE]
    180 
    181 General architecture-dependent options  ---&gt;
    182    [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]
    183    [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR]
    184    [*] Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG]
    185    
    186 [*] Networking support  ---&gt;   [CONFIG_NET]
    187    Networking options  ---&gt;
    188       [*] TCP/IP networking [CONFIG_INET]
    189       &lt;*&gt;   The IPv6 protocol [CONFIG_IPV6]
    190 
    191 Device Drivers  ---&gt;
    192    Generic Driver Options  ---&gt;
    193       [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
    194       [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
    195       [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs
    196                                                           [CONFIG_DEVTMPFS_MOUNT]
    197       Firmware Loader ---&gt;
    198          [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]
    199    Firmware Drivers   ---&gt;
    200       [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]
    201    Graphics support ---&gt;
    202       Frame buffer Devices ---&gt;
    203          &lt;*&gt; Support for frame buffer devices ---&gt;
    204       Console display driver support ---&gt;
    205          [*] Framebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE]
    206 
    207 File systems  ---&gt;
    208    [*] Inotify support for userspace [CONFIG_INOTIFY_USER]
    209        Pseudo filesystems  ---&gt;
    210         [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
     133      <!-- To editors: for updating kernel configuration, edit
     134           kernel/*.toml and regenerate kernel/*.xml with
     135           "make -C kernel KERNEL_TREE=</usr/src/linux-&linux-version> -->
     136
     137      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     138        href="kernel/sysv.xml"/>
     139
     140      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     141        href="kernel/systemd.xml"/>
    211142
    212143      <para>Enable some additional features if you are building a 64-bit
     
    217148      shows up after its dependencies are selected.</para>
    218149
    219 <screen role="nodump"><emphasis role='blue'>P</emphasis>rocessor type and features ---&gt;
    220   [*] <emphasis role='blue'>S</emphasis>upport x2apic [CONFIG_X86_X2APIC]
    221 
    222 Device Drivers ---&gt;
    223   [*] <emphasis role='blue'>P</emphasis>CI Support ---&gt; [CONFIG_PCI]
    224     [*] M<emphasis role='blue'>e</emphasis>ssage Signaled Interrupts (MSI and MSI-X) [CONFIG_PCI_MSI]
    225   [*] <emphasis role='blue'>I</emphasis>OMMU Hardware Support ---&gt; [CONFIG_IOMMU_SUPPORT]
    226     [*] <emphasis role='blue'>S</emphasis>upport for Interrupt Remapping [CONFIG_IRQ_REMAP]</screen>
     150      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     151        href="kernel/x2apic.xml"/>
    227152
    228153      <para>If you are building a 32-bit system running on a hardware
     
    230155      be able to use up to 64GB physical RAM:</para>
    231156
    232       <screen role="nodump"><emphasis role='blue'>P</emphasis>rocessor type and features ---&gt;
    233   H<emphasis role='blue'>i</emphasis>gh Memory Support ---&gt;
    234     (X) <emphasis role='blue'>6</emphasis>4GB [CONFIG_HIGHMEM64G]</screen>
     157      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     158        href="kernel/highmem.xml"/>
    235159
    236160      <para>If the partition for the LFS system is in a NVME SSD (i. e. the
     
    239163      the LFS system won't boot:</para>
    240164
    241       <screen role="nodump"><emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
    242   N<emphasis role='blue'>V</emphasis>ME Support ---&gt;
    243     &lt;*&gt; N<emphasis role='blue'>V</emphasis>M Express block device [CONFIG_BLK_DEV_NVME]</screen>
     165      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     166        href="kernel/nvme.xml"/>
    244167    </note>
    245168
Note: See TracChangeset for help on using the changeset viewer.