Commit Graph

8 Commits

Author SHA1 Message Date
Zeckmathederg
bec49eef92 Elogind: Added, along with... all the necessary packages... Fixes issue #20.
Amount of packages added: 9.
2024-09-11 17:41:11 -06:00
Zeckmathederg
b5598f98cd Added kernel-config, gamepad.xml, and qol. 2024-06-10 00:59:36 -06:00
Zeckmathederg
0c97bb3afb Stripped mostly everything, edited Introduction 2024-04-09 20:31:49 -06:00
Xi Ruoyao
900bdf4ab1
kernel-config: Don't leave bad .xml files when the command fails 2023-12-05 15:01:36 +08:00
Xi Ruoyao
d4f7a21b8a
kernel-config: Fix move-if-changed logic and regenerate with linux-6.4.8 2023-08-08 11:14:54 +08:00
Xi Ruoyao
1cf243636e
introduction: Use new kernel configuration rendering in conventions 2023-07-31 21:44:38 +08:00
Xi Ruoyao
6af847b8dd
uefi: Use new kernel config
Fix an issue causing kernel-config.py not to process indented "source"
directive in Kconfig for this.
2023-07-31 21:44:36 +08:00
Xi Ruoyao
604355989a
Add kernel-config infrastructure
The kernel-config.py script takes a toml file containing a set of
kernel configuration key-value pairs.  Then it parses the Kconfig files
in a kernel source tree and render the given configuration as a
LFS-style <screen> in a separate XML file.  The XML file can be used in
the book with xinclude.

Some "features":

1. The lines are limited to 80 columns.
   If the text of the configuration option is too long, it will be
   trimmed; if the symbolic name of the option cannot fit in this line,
   a separate line will be used for it.
2. If a configuration option is given but it does not exist in Kconfig
   files, the script will abort immediately.  This helps catching
   removed options.
3. The script also aborts immediately if a configuration option is
   illegal, for example setting an option to 'M' while it cannot be a
   module.
4. The infrastructure is not wired into the main Makefile.  It's because
   not all editors have the latest kernel tree, and even if they do the
   locations of the kernel tree are still different.  To update the
   generated XML files, use
   "make -C kernel-config KERNEL_TREE=/sources/linux-x.y.z".

Backword incompatible change:

The script no longer outputs "CONFIG_" prefix for the symbolic name.  It
really does not make too much sense to waste 7 characters here because
it's a common prefix for all options!

A limitation:

The script does not really validate the configuration.  Generally
validating the configuration requires to solve the 3-CNF-SAT problem,
which is NP-complete.
2023-07-31 21:44:35 +08:00