]> git.ipfire.org Git - ipfire-3.x.git/blame - kernel/README.md
kernel: Replace Python 2 interpreter by Python 3
[ipfire-3.x.git] / kernel / README.md
CommitLineData
4556c20a
MT
1# Kernel
2
3## Configuration
4
5### Layout
6
7The kernel configuration files are split into individual configuration files for
8each architecture. This way, common options can be changed globally and can be
9overwritten for certain architectures which gives us a more consistent configuration
10across all architectures.
11
12### How to update the configuration?
13
14For these steps, you will have to change into a build environment and change to
15the kernel directory:
16
17 # pakfire-builder shell kernel.nm
18 (pakfire-shell)> cd /usr/src/packages/kernel-x.y.z...
19
fa4b3a6b
MT
20The following commands are available. Appending the <arch> argument allows you
21to edit a specific architecture. Default is x86_64.
4556c20a
MT
22
23#### oldconfig
24
25You can run this when updating the kernel to a new release or after changing any
26options manually. All unset or updated options will be prompted for and all
27configuration files for all architectures will be updated.
28
fa4b3a6b 29 (pakfire-shell)> scripts/configure oldconfig <arch>
4556c20a
MT
30
31#### olddefconfig
32
33Like oldconfig, but automatically answers all options with the default value.
34
35 (pakfire-shell)> scripts/configure olddefconfig
36
37#### menuconfig
38
a8e51819
MT
39If you want to edit the configuration using the kernel's config editor. All
40configuration files will be updated afterwards and potentially prompted for options
41that diverge for different architectures.
4556c20a 42
fa4b3a6b 43 (pakfire-shell)> scripts/configure menuconfig <arch>
a8e51819 44
4556c20a
MT
45#### listnewconfig
46
47This will list all unset options.
48
fa4b3a6b 49 (pakfire-shell)> scripts/configure listnewconfig <arch>