treewide: The remaining of kernel configuration rendering

This commit is contained in:
Xi Ruoyao 2023-07-31 21:33:20 +08:00
parent 1cf243636e
commit cddcdb1411
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
23 changed files with 132 additions and 54 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
&lt;*/M&gt; M<emphasis role='blue'>u</emphasis>ltimedia support ---&gt; [MEDIA_SUPPORT]
[*] <emphasis role='blue'>A</emphasis>utoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)
... [MEDIA_SUBDRV_AUTOSELECT]
M<emphasis role='blue'>e</emphasis>dia device types ---&gt;
[*] <emphasis role='blue'>C</emphasis>ameras and video grabbers [MEDIA_CAMERA_SUPPORT]
M<emphasis role='blue'>e</emphasis>dia drivers ---&gt;
[ /*] M<emphasis role='blue'>e</emphasis>dia USB Adapters ---&gt; [MEDIA_USB_SUPPORT]
# Most modern USB camera needs this.
# For other devices you need to figure it out yourself:
&lt; /*/M&gt; <emphasis role='blue'>U</emphasis>SB Video Class (UVC) [USB_VIDEO_CLASS]</screen>

View File

@ -105,18 +105,12 @@
kernel if necessary:
</para>
<screen><literal>Device Drivers ---&gt;
&lt;*&gt; Multimedia support ---&gt; [CONFIG_MEDIA_SUPPORT]
[*] Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends) [CONFIG_MEDIA_SUBDRV_AUTOSELECT]
Media device types ---&gt;
[*] Cameras and video grabbers [CONFIG_MEDIA_CAMERA_SUPPORT]
Media drivers ---&gt;
[*] Media USB Adapters ---&gt; [CONFIG_MEDIA_USB_SUPPORT]
Select device(s) as needed</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="cheese-kernel.xml"/>
<indexterm zone="cheese cheese-kernel">
<primary sortas="d-cheese">cheese</primary>
</indexterm>
<indexterm zone="cheese cheese-kernel">
<primary sortas="d-cheese">cheese</primary>
</indexterm>
</sect2>
<sect2 role="installation">

View File

@ -0,0 +1,11 @@
MEDIA_SUPPORT='*M'
MEDIA_SUBDRV_AUTOSELECT='*'
MEDIA_CAMERA_SUPPORT='*'
MEDIA_USB_SUPPORT='* '
[USB_VIDEO_CLASS]
value = '*M '
comment = [
'Most modern USB camera needs this.',
'For other devices you need to figure it out yourself',
]

View File

@ -0,0 +1,8 @@
SOUND = '*M'
[SND]
value = '*M'
comment = [
'Select settings and drivers appropriate for your hardware',
'in the submenu',
]

View File

@ -0,0 +1,2 @@
DRM='*M'
DRM_I915='*M'

View File

@ -0,0 +1,3 @@
PARPORT='*M'
PARPORT_PC='*M'
PRINTER='*M'

View File

@ -0,0 +1,4 @@
# Things like XHCI_HCD or OHCI_HCD do not belong here
# These should be in libusb page
USB_SUPPORT='*'
USB_PRINTER='*M'

View File

@ -0,0 +1,3 @@
NAMESPACES = { value = '*', forced = true }
USER_NS = { value = '* ', comment = 'Enable or disable *both* of them' }
PID_NS = '* '

View File

@ -0,0 +1 @@
DNOTIFY='*'

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
&lt;*/M&gt; <emphasis role='blue'>S</emphasis>ound card support ---&gt; [SOUND]
# Select settings and drivers appropriate for your hardware
# in the submenu:
&lt;*/M&gt; <emphasis role='blue'>A</emphasis>dvanced Linux Sound Architecture ---&gt; [SND]</screen>

View File

@ -102,10 +102,8 @@
configuration and recompile the kernel:
</para>
<screen><literal>Device Drivers ---&gt;
&lt;*/M&gt; Sound card support ---&gt; [CONFIG_SOUND]
&lt;*/M&gt; Advanced Linux Sound Architecture ---&gt; [CONFIG_SND]
Select settings and drivers appropriate for your hardware.</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="alsa-lib-kernel.xml"/>
<para>
In the Device Drivers &rArr; Sound card support &rArr; Advanced Linux

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
<emphasis role='blue'>G</emphasis>raphics support ---&gt;
&lt;*/M&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt;
... [DRM]
&lt;*/M&gt; <emphasis role='blue'>I</emphasis>ntel 8xx/9xx/G3x/G4x/HD Graphics [DRM_I915]</screen>

View File

@ -112,10 +112,8 @@
Recompile the kernel if necessary:
</para>
<screen><literal>Device Drivers ---&gt;
Graphics support ---&gt;
&lt;*/M&gt; Direct Rendering Manager (XFree86 ... support) ---&gt; [CONFIG_DRM]
&lt;*/M&gt; Intel 8xx/9xx/G3x/G4x/HD Graphics [CONFIG_DRM_I915]</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="intel-media-kernel.xml"/>
<indexterm zone="intel-media intel-media-kernel">
<primary sortas="d-intel-media">intel-media</primary>

View File

@ -84,10 +84,9 @@
Recompile the kernel if necessary:
</para>
<screen><literal>Device Drivers ---&gt;
Graphics support ---&gt;
&lt;*/M&gt; Direct Rendering Manager (XFree86 ... support) ---&gt; [CONFIG_DRM]
&lt;*/M&gt; Intel 8xx/9xx/G3x/G4x/HD Graphics [CONFIG_DRM_I915]</literal></screen>
<!-- Reuse the file of intel-media for same configuration -->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="intel-media-kernel.xml"/>
<indexterm zone="intel-vaapi-driver intel-vaapi-driver-kernel">
<primary sortas="d-intel-vaapi-driver">intel-vaapi-driver</primary>

View File

@ -129,22 +129,16 @@
configuration and recompile the kernel:
</para>
<screen><literal>Device Drivers ---&gt;
[*] USB support ---&gt; [CONFIG_USB_SUPPORT]
&lt;*/M&gt; OHCI HCD (USB 1.1) support [CONFIG_USB_OHCI_HCD]
&lt;*/M&gt; UHCI HCD (most Intel and VIA) support [CONFIG_USB_UHCI_HCD]
&lt;*/M&gt; USB Printer support [CONFIG_USB_PRINTER]</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="usb-printer-kernel.xml"/>
<para>
If you have a parallel printer, enable the following options in your
kernel configuration and recompile the kernel:
</para>
<screen><literal>Device Drivers ---&gt;
&lt;*/M&gt; Parallel port support ---&gt; [CONFIG_PARPORT]
&lt;*/M&gt; PC-style hardware [CONFIG_PARPORT_PC]
Character devices ---&gt;
&lt;*/M&gt; Parallel printer support [CONFIG_PRINTER]</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="parallel-printer-kernel.xml"/>
<indexterm zone="cups cups-kernel">
<primary sortas="d-cups">cups</primary>

View File

@ -127,11 +127,8 @@
recompile the kernel:
</para>
<screen><literal>Device Drivers ---&gt;
[*] USB support ---&gt; [CONFIG_USB_SUPPORT]
&lt;*/M&gt; OHCI HCD (USB 1.1) support [CONFIG_USB_OHCI_HCD]
&lt;*/M&gt; UHCI HCD (most Intel and VIA) support [CONFIG_USB_UHCI_HCD]
&lt;*/M&gt; USB Printer support [CONFIG_USB_PRINTER]</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="usb-printer-kernel.xml"/>
<indexterm zone="gutenprint escputil">
<primary sortas="d-escputil">escputil for usb printers</primary>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
&lt;*/M&gt; <emphasis role='blue'>P</emphasis>arallel port support ---&gt; [PARPORT]
&lt;*/M&gt; <emphasis role='blue'>P</emphasis>C-style hardware [PARPORT_PC]
<emphasis role='blue'>C</emphasis>haracter devices ---&gt;
&lt;*/M&gt; <emphasis role='blue'>P</emphasis>arallel printer support [PRINTER]</screen>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>D</emphasis>evice Drivers ---&gt;
[*] <emphasis role='blue'>U</emphasis>SB support ---&gt; [USB_SUPPORT]
&lt;*/M&gt; <emphasis role='blue'>U</emphasis>SB Printer support [USB_PRINTER]</screen>

View File

@ -161,15 +161,13 @@
kernel if necessary:
</para>
<!-- Spaces are significant in <screen> sections -->
<screen><literal>Master section ---&gt;
Subsection ---&gt;
[*] Required parameter [CONFIG_REQU_PAR]
&lt;*&gt; Required parameter (not as module) [CONFIG_REQU_PAR_NMOD]
&lt;*/M&gt; Required parameter (could be a module) [CONFIG_REQU_PAR_MOD]
&lt;*/M/ &gt; Optional parameter [CONFIG_OPT_PAR]
[ ] Incompatible parameter [CONFIG_INCOMP_PAR]
&lt; &gt; Incompatible parameter (even as module) [CONFIG_INCOMP_PAR_MOD]</literal></screen>
<!-- Create a .toml file in the kernel-config tree to describe the
needed configuration. Then run
"make -C kernel-config KERNEL_TREE=</usr/src/linux-x.y.z> -j<N>"
to regenerate the XML file. Please use the same kernel version as
the LFS development book for KERNEL_TREE. -->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="template-kernel.xml"/>
<para>
Select the appropriate sub-options that appear when the above options are

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>G</emphasis>eneral setup ---&gt;
-*- N<emphasis role='blue'>a</emphasis>mespaces support ---&gt; [NAMESPACES]
# Enable or disable *both* of them:
[ /*] <emphasis role='blue'>U</emphasis>ser namespace [USER_NS]
[ /*] <emphasis role='blue'>P</emphasis>ID Namespaces [PID_NS]</screen>

View File

@ -624,11 +624,8 @@ make</userinput></screen>
configuration and recompile the kernel if necessary:
</para>
<!-- Spaces are significant in <screen> sections -->
<screen><literal>General setup ---&gt;
-*- Namespaces support ---&gt;
[ ] User namespace [CONFIG_USER_NS]
[*] PID namespace [CONFIG_PID_NS]</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="qtwebengine-kernel.xml"/>
<indexterm zone="qtwebengine qtwebengine-kernel">
<primary sortas="d-qtwebengine">qtwebengine</primary>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><emphasis role='blue'>F</emphasis>ile systems ---&gt;
[*] <emphasis role='blue'>D</emphasis>notify support [DNOTIFY]</screen>

View File

@ -86,8 +86,8 @@
dnotify support in your kernel. In <command>make menuconfig</command>:
</para>
<screen><literal>File systems ---&gt;
[*] Dnotify support [CONFIG_DNOTIFY]</literal></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="rox-filer-kernel.xml"/>
<para>
Save the new <filename>.config</filename> and then compile the kernel.