最終更新:2024-09-24 (火) 14:16:18 (19d)
CONFIG_IKCONFIG
Top / CONFIG_IKCONFIG
In-kernel Config
有効にするとkernel設定の内容がkernelイメージに含まれるようになる。
init/Kconfig
config IKCONFIG tristate "Kernel .config support" ---help--- This option enables the complete Linux kernel ".config" file contents to be saved in the kernel. It provides documentation of which kernel options are used in a running kernel or in an on-disk kernel. This information can be extracted from the kernel image file with the script scripts/extract-ikconfig and used as input to rebuild the current kernel or to build another kernel. It can also be extracted from a running kernel by reading /proc/config.gz if enabled (below).
CONFIG_IKCONFIG_PROC
configs.ko
- -mのときはconfigs.koから抽出できる
- https://stackoverflow.com/questions/45654291/how-to-extract-the-config-from-a-kernel-image-file-when-config-ikconfig-is-set-a
Ubuntu/.config
- Ubuntu 22.04ではnot set
- Linux/bootに置いてある