:::{note} AI Translation Notice
This document was automatically translated by Qwen/Qwen3-8B
model, for reference only.
Source document: kernel/configuration/config.md
Translation time: 2025-05-19 01:41:17
Translation model: Qwen/Qwen3-8B
Please report issues via Community Channel
:::
Within the kernel directory, the kernel configuration is set using kernel.config
. This file is parsed in a manner similar to a TOML file, and then the configuration of each module's d.config
is parsed to determine the status of features.
kernel.config
[[module.include]]
name = "init"
path = "src/init/"
enable = "y"
description = ""
[[module.include]]
name = "mm"
path = "src/mm/"
enable = "y"
description = ""
d.config
file is locatedd.config
file of the modulesrc/mm/d.config
[module]
name = "mm"
description = ""
[[module.include]]
name = "allocator"
path = "src/mm/allocator/"
enable = "y"
description = ""
[[module.features]]
name = "mm_debug"
enable = "y"
description = ""
kernel.config
The following are the d.config
files of other modules:
src/mm/allocator/d.config
[module]
name = "allocator"
description = ""
[[module.features]]
name = "allocator_debug"
enable = "y"
description = ""
src/init/d.config
[module]
name = "init"
description = ""
[[module.features]]
name = "init_debug"
enable = "y"
description = ""
All features enabled in the d.config
files of the activated modules will be ultimately generated into the D.config
file in the kernel directory. That is, D.config
is the final kernel compilation configuration, as follows:
D.config
init_debug = y
allocator_debug = y
mm_debug = y